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:

committed by
Junio C Hamano

parent
046613c546
commit
c9dbab045d
@ -570,7 +570,7 @@ class P4Submit(Command):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if inDescriptionSection:
|
if inDescriptionSection:
|
||||||
if line.startswith("Files:"):
|
if line.startswith("Files:") or line.startswith("Jobs:"):
|
||||||
inDescriptionSection = False
|
inDescriptionSection = False
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user