Commit 73449b0b authored by tandrii's avatar tandrii Committed by Commit bot

Gerrit git cl land: abort if not uploaded.

R=agable@chromium.org
BUG=642759,609225

Review-Url: https://codereview.chromium.org/2317253003
parent 5d0a0421
...@@ -4026,6 +4026,10 @@ def SendUpstream(parser, args, cmd): ...@@ -4026,6 +4026,10 @@ def SendUpstream(parser, args, cmd):
'the contributor\'s "name <email>". If you can\'t upload such a ' 'the contributor\'s "name <email>". If you can\'t upload such a '
'commit for review, contact your repository admin and request' 'commit for review, contact your repository admin and request'
'"Forge-Author" permission.') '"Forge-Author" permission.')
if not cl.GetIssue():
DieWithError('You must upload the issue first to Gerrit.\n'
' If you would rather have `git cl land` upload '
'automatically for you, see http://crbug.com/642759')
return cl._codereview_impl.CMDLand(options.force, options.bypass_hooks, return cl._codereview_impl.CMDLand(options.force, options.bypass_hooks,
options.verbose) options.verbose)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment