Fix a bug on list_unreleased_changes during tag retrieving

Indeed `gitutils.gitutils.stable_branch_exists` is waiting for a branch
name not prefixed with `stable/`. This was not an issue with the
previous shell version. These changes fix that.

Without these changes the master branch will be analyzed and stable
branches will be ignored.

Change-Id: I61542508e8566eb797b0e304a6914d25e3b07e14
This commit is contained in:
Hervé Beraud 2020-07-27 12:16:51 +02:00
parent 85d8c3eb31
commit d63b38783a

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'