Support default branches with names other than master. Fixes athul/waka-readme#34.

This commit is contained in:
Malcolm Davis Steele 2020-09-13 03:52:13 -06:00
parent ec79c6dacb
commit 2e05fe3bf2

View File

@ -100,4 +100,4 @@ if __name__ == '__main__':
new_readme = generate_new_readme(stats=waka_stats, readme=rdmd)
if new_readme != rdmd:
repo.update_file(path=contents.path, message=commit_message,
content=new_readme, sha=contents.sha, branch='master')
content=new_readme, sha=contents.sha)