Gerrit git cl: run same post-upload hooks.
R=rmistry@chromium.org,andybons@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1692513002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298733 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index 46e60fb..92c6cce 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2474,8 +2474,9 @@
options.squash = ((settings.GetSquashGerritUploads() or options.squash) and
not options.no_squash)
- return GerritUpload(options, args, cl, change)
- ret = RietveldUpload(options, args, cl, change)
+ ret = GerritUpload(options, args, cl, change)
+ else:
+ ret = RietveldUpload(options, args, cl, change)
if not ret:
git_set_branch_value('last-upload-hash',
RunGit(['rev-parse', 'HEAD']).strip())