diff --git a/backport.py b/backport.py index 7434524..fed8da3 100755 --- a/backport.py +++ b/backport.py @@ -14,6 +14,7 @@ BASH = os.getenv('BASH','bash') # Other configuration SRCREPO = os.getenv('SRCREPO', '../bitcoin') +BRANCH = os.getenv('BRANCH', 'master') def ask_prompt(text): print(text,end=" ",file=sys.stderr) @@ -33,7 +34,7 @@ def ask_prompt(text): pulls = set(pulls) repo = git.Repo(SRCREPO) -head = repo.heads['master'] +head = repo.heads[BRANCH] commit = head.commit to_backport = []