Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Unified Diff: git_cl.py

Issue 13513002: Fix a case branch...rietveldissue is None. (Closed) Base URL: http://git.chromium.org/chromium/tools/depot_tools.git@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index f836a0501f82119c3fccae9cab94b3b587efe55e..e20de825608befe6ae0c26628499df8c85e5bb76 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1293,7 +1293,7 @@ def CMDupload(parser, args):
if cl.GetIssue():
latest_patchset = cl.GetMostRecentPatchset(cl.GetIssue())
local_patchset = cl.GetPatchset()
- if local_patchset != latest_patchset:
+ if latest_patchset and local_patchset and local_patchset != latest_patchset:
print ('The last upload made from this repository was patchset #%d but '
'the most recent patchset on the server is #%d.'
% (local_patchset, latest_patchset))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698