have list-changes handle missing branch list
If list-changes can't get the branch list, avoid dying from an IndexError and just treat it as though we expect the release to be on the specified branch. Change-Id: I4983b535379353d96aeaeaa52bb883f8ebca400c Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
@@ -310,7 +310,7 @@ def main():
|
||||
)
|
||||
print('HEAD of {} is {}'.format(tag_branch, head_sha))
|
||||
else:
|
||||
if branch in branches:
|
||||
if (branch in branches) or (not branches):
|
||||
tag_branch = branch
|
||||
else:
|
||||
tag_branch = branches[0]
|
||||
|
||||
Reference in New Issue
Block a user