Commit 063e4e52 authored by wychen@chromium.org's avatar wychen@chromium.org

In "git cl description", skip updating when unchanged

BUG=473423

Review URL: https://codereview.chromium.org/1058793004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@294671 0039d316-1c4b-4281-b951-d872f2087c98
parent 37b2ec01
......@@ -1575,7 +1575,8 @@ def CMDdescription(parser, args):
DieWithError('This branch has no associated changelist.')
description = ChangeDescription(cl.GetDescription())
description.prompt()
cl.UpdateDescription(description.description)
if cl.GetDescription() != description.description:
cl.UpdateDescription(description.description)
return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment