@matheusbsbs / matheus-bagliano / commits / 30c9e919b6
Fork 0

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>

Michael Haggerty committed Jan 22, 2010 at 10:22 UTC 30c9e919b6ef33b0427a3ad784ed9e951ea48648
1 file changed +1 -1
t/lib-rebase.sh
+1 -1
@@ -27,7 +27,7 @@ set_fake_editor () {
27 case "$1" in
28 */COMMIT_EDITMSG)
29 test -z "$EXPECT_HEADER_COUNT" ||
30 - test "$EXPECT_HEADER_COUNT" = $(sed -n '1s/^# This is a combination of \(.*\) commits\./\1/p' < "$1") ||
30 + test "$EXPECT_HEADER_COUNT" = "$(sed -n '1s/^# This is a combination of \(.*\) commits\./\1/p' < "$1")" ||
31 exit
32 test -z "$FAKE_COMMIT_MESSAGE" || echo "$FAKE_COMMIT_MESSAGE" > "$1"
33 test -z "$FAKE_COMMIT_AMEND" || echo "$FAKE_COMMIT_AMEND" >> "$1"