Commit 57e7855b authored by bradnelson@google.com's avatar bradnelson@google.com

Making gcl upload do tryupload from the same place as gcl try.

BUG=None
TEST=None

Review URL: http://codereview.chromium.org/200103

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26044 0039d316-1c4b-4281-b951-d872f2087c98
parent df2d5905
......@@ -853,6 +853,10 @@ def UploadCL(change_info, args):
# ready when the issue is viewed.
SendToRietveld("/lint/issue%s_%s" % (issue, patchset), timeout=0.5)
# Move back before considering try, so GetCodeReviewSettings is
# consistent.
os.chdir(previous_cwd)
# Once uploaded to Rietveld, send it to the try server.
if not no_try:
try_on_upload = GetCodeReviewSetting('TRY_ON_UPLOAD')
......@@ -862,7 +866,6 @@ def UploadCL(change_info, args):
trychange_args.append('--clobber')
TryChange(change_info, trychange_args, swallow_exception=True)
os.chdir(previous_cwd)
def PresubmitCL(change_info):
......
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