From 99f2e8700b244c84e31de523114d0e32a1e84194 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Mon, 5 Jun 2017 14:54:05 -0400 Subject: [PATCH] support old independent releases Don't fail when processing independent releases on branches that have been EOLed. Change-Id: I9fd87d5e2ac08a6bf8abcc811fb92950eb5dd7c6 Signed-off-by: Doug Hellmann --- openstack_releases/cmds/list_changes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openstack_releases/cmds/list_changes.py b/openstack_releases/cmds/list_changes.py index 32f305edd9..4d4b72d1ce 100644 --- a/openstack_releases/cmds/list_changes.py +++ b/openstack_releases/cmds/list_changes.py @@ -305,7 +305,10 @@ def main(): header('Relationship to HEAD') if series == '_independent': - tag_branch = branches[0] + if branches: + tag_branch = branches[0] + else: + tag_branch = branch head_sha = gitutils.sha_for_tag( workdir, project['repo'],