1
0
Fork 0
mirror of https://github.com/clockfort/GitHub-Backup.git synced 2025-03-16 00:00:06 +01:00

Merge pull request #13 from marianzange/fix-keyname

Use 'default_branch' instead of 'master_branch'
This commit is contained in:
Chris Lockfort 2014-07-28 22:35:31 -07:00
commit f37f91ff33

View file

@ -102,7 +102,7 @@ def update_repo(repo, dir, args):
os.system("git config --local gitweb.owner %s"%(shell_escape("%s <%s>"%(repo.user.name, repo.user.email.encode("utf-8"))),)) os.system("git config --local gitweb.owner %s"%(shell_escape("%s <%s>"%(repo.user.name, repo.user.email.encode("utf-8"))),))
os.system("git config --local cgit.name %s"%(shell_escape(repo.name),)) os.system("git config --local cgit.name %s"%(shell_escape(repo.name),))
os.system("git config --local cgit.defbranch %s"%(shell_escape(repo.master_branch),)) os.system("git config --local cgit.defbranch %s"%(shell_escape(repo.default_branch),))
os.system("git config --local cgit.clone-url %s"%(shell_escape(repo.clone_url),)) os.system("git config --local cgit.clone-url %s"%(shell_escape(repo.clone_url),))
os.chdir(savedPath) os.chdir(savedPath)