From 0e66fb522098fb0f5cee020b18a8a9e2129fa695 Mon Sep 17 00:00:00 2001 From: Marian Zange Date: Wed, 25 Jun 2014 15:26:48 +0200 Subject: [PATCH] Use 'default_branch' instead of 'master_branch' --- github-backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-backup.py b/github-backup.py index fe3ea84..a147033 100755 --- a/github-backup.py +++ b/github-backup.py @@ -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 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.chdir(savedPath)