Merge "Fix a bug on list_unreleased_changes during tag retrieving"

This commit is contained in:
Zuul 2020-07-27 20:51:11 +00:00 committed by Gerrit Code Review
commit a25d505d7c

View File

@ -259,8 +259,9 @@ def main():
# Determine which branch we should actually be looking
# at. Assume any series for which there is no stable
# branch will be on 'master'.
if gitutils.stable_branch_exists(workdir, repo, args.branch):
branch = 'stable/' + args.branch
branch = args.branch.replace('stable/', '')
if gitutils.stable_branch_exists(workdir, repo, branch):
branch = 'stable/' + branch
else:
branch = 'master'