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: Aaron Gable <agable@chromium.org>
changes/76/432676/7
Andrii Shyshkalov 9 years ago committed by Commit Bot
parent 056bef208a
commit 1090fd5b69

@ -3515,7 +3515,7 @@ def upload_branch_deps(cl, args):
if root_branch is None:
DieWithError('Can\'t find dependent branches from detached HEAD state. '
'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 '
'patchset dependencies without an uploaded CL.')

Loading…
Cancel
Save