| 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))
|
|
|