rebase -i: Enclose sed command substitution in quotes
Reported by: Johannes Sixt <j.sixt@viscovery.net> Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8cddaeec0d
commit
30c9e919b6
@ -27,7 +27,7 @@ set_fake_editor () {
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
*/COMMIT_EDITMSG)
|
*/COMMIT_EDITMSG)
|
||||||
test -z "$EXPECT_HEADER_COUNT" ||
|
test -z "$EXPECT_HEADER_COUNT" ||
|
||||||
test "$EXPECT_HEADER_COUNT" = $(sed -n '1s/^# This is a combination of \(.*\) commits\./\1/p' < "$1") ||
|
test "$EXPECT_HEADER_COUNT" = "$(sed -n '1s/^# This is a combination of \(.*\) commits\./\1/p' < "$1")" ||
|
||||||
exit
|
exit
|
||||||
test -z "$FAKE_COMMIT_MESSAGE" || echo "$FAKE_COMMIT_MESSAGE" > "$1"
|
test -z "$FAKE_COMMIT_MESSAGE" || echo "$FAKE_COMMIT_MESSAGE" > "$1"
|
||||||
test -z "$FAKE_COMMIT_AMEND" || echo "$FAKE_COMMIT_AMEND" >> "$1"
|
test -z "$FAKE_COMMIT_AMEND" || echo "$FAKE_COMMIT_AMEND" >> "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user