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:
Doug Hellmann
2017-03-13 14:46:49 -04:00
parent d5781ca169
commit 94e6488d18

View File

@@ -310,7 +310,7 @@ def main():
) )
print('HEAD of {} is {}'.format(tag_branch, head_sha)) print('HEAD of {} is {}'.format(tag_branch, head_sha))
else: else:
if branch in branches: if (branch in branches) or (not branches):
tag_branch = branch tag_branch = branch
else: else:
tag_branch = branches[0] tag_branch = branches[0]