git-cl set_close: Don't fail on branches with no issue

R=tandrii@chromium.org

Bug: 258661
Change-Id: Iee910d6d01df4c675523abdaf4e505364f94c4aa
Reviewed-on: https://chromium-review.googlesource.com/651233
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
changes/33/651233/3
Aaron Gable 8 years ago committed by Commit Bot
parent 2979a87195
commit 7139a4e23c

@ -5692,7 +5692,8 @@ def CMDset_close(parser, args):
cl = Changelist(auth_config=auth_config, issue=options.issue, cl = Changelist(auth_config=auth_config, issue=options.issue,
codereview=options.forced_codereview) codereview=options.forced_codereview)
# Ensure there actually is an issue to close. # Ensure there actually is an issue to close.
cl.GetDescription() if not cl.GetIssue():
DieWithError('ERROR No issue to close')
cl.CloseIssue() cl.CloseIssue()
return 0 return 0

Loading…
Cancel
Save