Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 = []
Expand Down