Commit c4e1b91b authored by tandrii@chromium.org's avatar tandrii@chromium.org

Temporary fix for codereview cert issue.

BUG=537763
R=stip@chromium.org

Review URL: https://codereview.chromium.org/1376333002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@296959 0039d316-1c4b-4281-b951-d872f2087c98
parent 38784a63
......@@ -579,6 +579,9 @@ class JwtOAuth2Rietveld(Rietveld):
self.url = url.rstrip('/')
bot_url = self.url
# TODO(tandrii): remove temp fix due to cert problem: crbug/537763
if bot_url.endswith('codereview.chromium.org'):
bot_url = 'https://chromiumcodereview.appspot.com'
if self.url.endswith('googleplex.com'):
bot_url = self.url + '/bots'
......
......@@ -2536,6 +2536,14 @@ def RealMain(argv, data=None):
payload = urllib.urlencode(payload)
rpc_server.Send("/" + issue + "/upload_complete/" + (patchset or ""),
payload=payload)
# TODO(tandrii): remove temp fix due to cert problem: crbug/537763
if ("codereview.chromium.org" in response_body and
(response_body.startswith("Issue created.") or
response_body.startswith("Issue updated."))):
print
print "NOTE: Due to certificate problems, try equivalent URL:"
print "https://chromiumcodereview.appspot.com/%s" % issue
print
return issue, patchset
......
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