X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Flib-rebase.sh;h=6aefe27593e89d57f075bc0d3dbc5a1104d874b7;hb=48c250a121a425a1860226b6a7061aecfbab5246;hp=2d922ae43cdaac23392f92d5b9b0470b1056b363;hpb=fcb2a7e4a3c7899a3432f5804889fa3ea5779220;p=git.git 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"