diff --git a/gcl.py b/gcl.py index 750e4cabb4..d043a35035 100755 --- a/gcl.py +++ b/gcl.py @@ -1033,8 +1033,10 @@ def CMDcommit(change_info, args): re.DOTALL).match(output).group(1) viewvc_url = gclient_utils.UpgradeToHttps(GetCodeReviewSetting('VIEW_VC')) change_info.description += '\n' - if viewvc_url: + if viewvc_url and revision: change_info.description += "\nCommitted: " + viewvc_url + revision + elif revision: + change_info.description += "\nCommitted: " + revision change_info.CloseIssue() return 0 diff --git a/git_cl.py b/git_cl.py index acd04a57af..244259df3d 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1384,6 +1384,8 @@ def SendUpstream(parser, args, cmd): viewvc_url = settings.GetViewVCUrl() if viewvc_url and revision: cl.description += ('\n\nCommitted: ' + viewvc_url + revision) + elif revision: + cl.description += ('\n\nCommitted: ' + revision) print ('Closing issue ' '(you may be prompted for your codereview password)...') cl.CloseIssue()