summaryrefslogtreecommitdiff
path: root/t/t6011-rev-list-with-bad-commit.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-07-22 12:59:56 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-07-22 12:59:56 -0700
commitbb3ed291a6cfd4ed58773f2158f3ae32baf066e0 (patch)
tree9d8281ef421c7ee7d71426954fd9c829e803d5b6 /t/t6011-rev-list-with-bad-commit.sh
parentGit 1.7.11.2 (diff)
parentt/README: add a bit more Don'ts (diff)
downloadtgif-bb3ed291a6cfd4ed58773f2158f3ae32baf066e0.tar.xz
Merge branch 'vr/use-our-perl-in-tests' into maint
Some implementations of Perl terminates "lines" with CRLF even when the script is operating on just a sequence of bytes. Make sure to use "$PERL_PATH", the version of Perl the user told Git to use, in our tests to avoid unnecessary breakages in tests. * vr/use-our-perl-in-tests: t/README: add a bit more Don'ts tests: enclose $PERL_PATH in double quotes t/test-lib.sh: export PERL_PATH for use in scripts t: Replace 'perl' by $PERL_PATH
Diffstat (limited to 't/t6011-rev-list-with-bad-commit.sh')
-rwxr-xr-xt/t6011-rev-list-with-bad-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t6011-rev-list-with-bad-commit.sh b/t/t6011-rev-list-with-bad-commit.sh
index e51eb41f4b..bbb0581f88 100755
--- a/t/t6011-rev-list-with-bad-commit.sh
+++ b/t/t6011-rev-list-with-bad-commit.sh
@@ -37,7 +37,7 @@ test_expect_success 'verify number of revisions' \
test_expect_success 'corrupt second commit object' \
'
- perl -i.bak -pe "s/second commit/socond commit/" .git/objects/pack/*.pack &&
+ "$PERL_PATH" -i.bak -pe "s/second commit/socond commit/" .git/objects/pack/*.pack &&
test_must_fail git fsck --full
'