fix failed rename of args
TBR=maruel@chromium.org
Review URL: http://codereview.chromium.org/6714008
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78668 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl/git_cl.py b/git_cl/git_cl.py
index 2005c19..56a2fa6 100644
--- a/git_cl/git_cl.py
+++ b/git_cl/git_cl.py
@@ -1172,7 +1172,7 @@
return 1
issue_arg = args[0]
- if re.match(r'\d+', input):
+ if re.match(r'\d+', issue_arg):
# Input is an issue id. Figure out the URL.
issue = issue_arg
server = settings.GetDefaultServerUrl()
@@ -1188,7 +1188,7 @@
match = re.match(r'.*?/issue(\d+)_\d+.diff', issue_url)
if match:
issue = match.group(1)
- url = input
+ url = issue_arg
else:
DieWithError('Must pass an issue ID or full URL for '
'\'Download raw patch set\'')