From 4e5207d6f0ce1edeb4d73a0dc3fbae2a7ff032d5 Mon Sep 17 00:00:00 2001 From: Aaron Gable Date: Thu, 13 Jul 2017 10:07:39 -0700 Subject: [PATCH] git-cl issue 0: Don't operate on empty description TBR=tandrii Bug: 741648 Change-Id: If9bcab1892e30ea5fae127302da12f0d9a201cb8 Reviewed-on: https://chromium-review.googlesource.com/570181 Reviewed-by: Aaron Gable Commit-Queue: Aaron Gable --- git_cl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index 284691357..0c09f2dfd 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1472,7 +1472,7 @@ class Changelist(object): codereview_server) else: desc = self.GetDescription() - if git_footers.get_footer_change_id(desc): + if desc and git_footers.get_footer_change_id(desc): print('WARNING: The change patched into this branch has a Change-Id. ' 'Removing it.') RunGit(['commit', '--amend', '-m',