diff options
author | Stephen Boyd <bebarino@gmail.com> | 2010-01-26 15:08:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-26 15:16:54 -0800 |
commit | 9524cf29930b4f91d68ad1384d7f984393a54c15 (patch) | |
tree | fec23ec235813a482b7d3d9e2bf187c9ddd8b2ef /t/t7500-commit.sh | |
parent | 24072c0256a520408575416fe8706667b576ff99 (diff) | |
download | git-9524cf29930b4f91d68ad1384d7f984393a54c15.tar.gz |
fix portability issues with $ in double quotes
Using a dollar sign in double quotes isn't portable. Escape them with
a backslash or replace the double quotes with single quotes.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7500-commit.sh')
-rwxr-xr-x | t/t7500-commit.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7500-commit.sh b/t/t7500-commit.sh index 8eec0fa9bc..9f5c3edb03 100755 --- a/t/t7500-commit.sh +++ b/t/t7500-commit.sh @@ -150,7 +150,7 @@ EOF test_expect_success '--signoff' ' echo "yet another content *narf*" >> foo && echo "zort" | git commit -s -F - foo && - git cat-file commit HEAD | sed "1,/^$/d" > output && + git cat-file commit HEAD | sed "1,/^\$/d" > output && test_cmp expect output ' |