summaryrefslogtreecommitdiff
path: root/t/t6030-bisect-porcelain.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-04-15 12:56:50 -0700
committerJunio C Hamano <gitster@pobox.com>2008-04-16 00:11:04 -0700
commit2e6e3e829f3759823d70e7af511bc04cd05ad0af (patch)
tree71e5777d32934be3aa4f92f2faa580ed284703c7 /t/t6030-bisect-porcelain.sh
parent6a28518ae098fad99ca3774ad7ed17bb681b809b (diff)
downloadgit-2e6e3e829f3759823d70e7af511bc04cd05ad0af.tar.gz
git-am: cope better with an empty Subject: line
When the Subject: line is empty for whatever reason, git-am was fooled by it and left an empty line at the beginning of the resulting commit log message. This moves the logic around so that we do not keep $SUBJECT in a separate variable. Instead, $dotest/msg-clean, which used to be the log message body extracted from the message and then trailing whitespaces cleansed out, now contains the subject line followed by a blank line at the beginning for normal messages, and we use the first line from the file as the summary line throughout the program. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6030-bisect-porcelain.sh')
0 files changed, 0 insertions, 0 deletions