fix git cl presubmit

BUG=chromium:1056534
TEST=run git cl presubmit

Change-Id: I22a7951623b241b8b1cc49f107f024d95054506d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2077357
Auto-Submit: Gregory Nisbet <gregorynisbet@google.com>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
changes/57/2077357/2
Gregory Nisbet 6 years ago committed by LUCI CQ
parent 005269a513
commit 29d5cf85ac

@ -2023,7 +2023,7 @@ class Changelist(object):
if self.GetIssue():
description = self.FetchDescription()
else:
description = self.GetDescription(upstream)
description = self.GetLocalDescription(upstream)
self.RunHook(
committing=True,
may_prompt=not force,
@ -4127,10 +4127,10 @@ def CMDpresubmit(parser, args):
# Default to diffing against the common ancestor of the upstream branch.
base_branch = cl.GetCommonAncestorWithUpstream()
if self.GetIssue():
description = self.FetchDescription()
if cl.GetIssue():
description = cl.FetchDescription()
else:
description = self.GetDescription(base_branch)
description = cl.GetLocalDescription(base_branch)
cl.RunHook(
committing=not options.upload,

Loading…
Cancel
Save