summaryrefslogtreecommitdiff
path: root/t/t4031-diff-rewrite-binary.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-12 09:49:59 -0700
committerJunio C Hamano <gitster@pobox.com>2012-06-24 21:56:13 -0700
commit7096b6486e40f509ee53448596b3cdb86360ad3e (patch)
tree3ffaaa525f00e14379e949f97f73e7ce6a75aa1f /t/t4031-diff-rewrite-binary.sh
parent770bf6c5e2830add4b59d3dbf9929e62ed4d6fb7 (diff)
downloadgit-7096b6486e40f509ee53448596b3cdb86360ad3e.tar.gz
tests: enclose $PERL_PATH in double quotes
Otherwise it will be split at a space after "Program" when it is set to "\\Program Files\perl" or something silly like that. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4031-diff-rewrite-binary.sh')
-rwxr-xr-xt/t4031-diff-rewrite-binary.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4031-diff-rewrite-binary.sh b/t/t4031-diff-rewrite-binary.sh
index e8ee06e29c..eacc6694f7 100755
--- a/t/t4031-diff-rewrite-binary.sh
+++ b/t/t4031-diff-rewrite-binary.sh
@@ -60,7 +60,7 @@ test_expect_success 'diff --stat counts binary rewrite as 0 lines' '
{
echo "#!$SHELL_PATH"
cat <<'EOF'
-$PERL_PATH -e '$/ = undef; $_ = <>; s/./ord($&)/ge; print $_' < "$1"
+"$PERL_PATH" -e '$/ = undef; $_ = <>; s/./ord($&)/ge; print $_' < "$1"
EOF
} >dump
chmod +x dump