Index: git_cl.py |
diff --git a/git_cl.py b/git_cl.py |
index 11266914aaf022ae3e9884b90451181e9c8e1042..e0bf935cd99cb2e74317f8dda2e89713e0b358af 100755 |
--- a/git_cl.py |
+++ b/git_cl.py |
@@ -1496,7 +1496,7 @@ def SendUpstream(parser, args, cmd): |
'(you may be prompted for your codereview password)...') |
cl.CloseIssue() |
props = cl.RpcServer().get_issue_properties(cl.GetIssue(), False) |
- patch_num = len(props['patchset']) |
+ patch_num = len(props['patchsets']) |
comment = "Committed patchset #%d manually as r%s" % (patch_num, revision) |
comment += ' (presubmit successful).' if not options.bypass_hooks else '.' |
cl.RpcServer().add_comment(cl.GetIssue(), comment) |