diff --git a/git_cl.py b/git_cl.py index 9d1b861d8e..311b6376c3 100755 --- a/git_cl.py +++ b/git_cl.py @@ -3473,8 +3473,9 @@ class ChangeDescription(object): DieWithError('Running editor failed') lines = content.splitlines() - # Strip off comments. - clean_lines = [line.rstrip() for line in lines if not line.startswith('#')] + # Strip off comments and default inserted "Bug:" line. + clean_lines = [line.rstrip() for line in lines if not + (line.startswith('#') or line.rstrip() == "Bug:")] if not clean_lines: DieWithError('No CL description, aborting') self.set_description(clean_lines)