1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-04 04:16:12 +02:00

git-p4 submit: prevent 'Jobs' section from being removed from p4 change log

In an attempt to overwrite the 'Description:' section of the p4 change
log to include the git commit messages, it also overwrote the 'Jobs:'
section.  This fix restores the 'Job:' section.

Signed-off-by: Michael Horowitz <michael.horowitz@ieee.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Michael Horowitz 2011-02-25 21:31:13 -05:00 committed by Junio C Hamano
parent 046613c546
commit c9dbab045d

View File

@ -570,7 +570,7 @@ class P4Submit(Command):
continue
if inDescriptionSection:
if line.startswith("Files:"):
if line.startswith("Files:") or line.startswith("Jobs:"):
inDescriptionSection = False
else:
continue