Explicitly convert issue and patchset to int.
upload.py returns them as string, eventually leading to a crash.
[email protected]
BUG=265546
Review URL: https://chromiumcodereview.appspot.com/21020008
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@214247 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index 0ac0f86..64ebcd9 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1412,6 +1412,8 @@
upload_args = ['upload'] + upload_args + args
logging.info('upload.RealMain(%s)', upload_args)
issue, patchset = upload.RealMain(upload_args)
+ issue = int(issue)
+ patchset = int(patchset)
except KeyboardInterrupt:
sys.exit(1)
except: