From: Michael Haggerty Date: Fri, 22 Jan 2010 09:22:30 +0000 (+0100) Subject: rebase -i: Enclose sed command substitution in quotes X-Git-Tag: v1.7.0-rc0~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30c9e919b6ef33b0427a3ad784ed9e951ea48648;p=git.git rebase -i: Enclose sed command substitution in quotes Reported by: Johannes Sixt Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- diff --git a/t/lib-rebase.sh b/t/lib-rebase.sh index 2d922ae43..6aefe2759 100644 --- a/t/lib-rebase.sh +++ b/t/lib-rebase.sh @@ -27,7 +27,7 @@ set_fake_editor () { case "$1" in */COMMIT_EDITMSG) 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 test -z "$FAKE_COMMIT_MESSAGE" || echo "$FAKE_COMMIT_MESSAGE" > "$1" test -z "$FAKE_COMMIT_AMEND" || echo "$FAKE_COMMIT_AMEND" >> "$1"