Commit 1090fd5b authored by Andrii Shyshkalov's avatar Andrii Shyshkalov Committed by Commit Bot

Fix git cl upload --dependencies for Gerrit.

BUG=640299
R=rmistry@chromium.org,agable@chromium.org

Change-Id: Iac987758065c57a4a08ce98f838fc0c30a8c1a02
Reviewed-on: https://chromium-review.googlesource.com/432676
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
parent 056bef20
...@@ -3515,7 +3515,7 @@ def upload_branch_deps(cl, args): ...@@ -3515,7 +3515,7 @@ def upload_branch_deps(cl, args):
if root_branch is None: if root_branch is None:
DieWithError('Can\'t find dependent branches from detached HEAD state. ' DieWithError('Can\'t find dependent branches from detached HEAD state. '
'Get on a branch!') 'Get on a branch!')
if not cl.GetIssue() or not cl.GetPatchset(): if not cl.GetIssue() or (not cl.IsGerrit() and not cl.GetPatchset()):
DieWithError('Current branch does not have an uploaded CL. We cannot set ' DieWithError('Current branch does not have an uploaded CL. We cannot set '
'patchset dependencies without an uploaded CL.') 'patchset dependencies without an uploaded CL.')
......
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