Fix regression where the issue description to be updated when closing an issue on commit/push.
The regression was introduced in r87253.
TBR=dpranke@chromium.org
BUG=
TEST=
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@87550 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index 1cd591d..8aed4b9 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -562,7 +562,10 @@
return output
def CloseIssue(self):
- return self.RpcServer().close_issue(int(self.GetIssue()))
+ """Updates the description and closes the issue."""
+ issue = int(self.GetIssue())
+ self.RpcServer().update_description(issue, self.description)
+ return self.RpcServer().close_issue(issue)
def SetFlag(self, flag, value):
"""Patchset must match."""