diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-22 12:59:56 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-22 12:59:56 -0700 |
commit | bb3ed291a6cfd4ed58773f2158f3ae32baf066e0 (patch) | |
tree | 9d8281ef421c7ee7d71426954fd9c829e803d5b6 /t/t6011-rev-list-with-bad-commit.sh | |
parent | Git 1.7.11.2 (diff) | |
parent | t/README: add a bit more Don'ts (diff) | |
download | tgif-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-x | t/t6011-rev-list-with-bad-commit.sh | 2 |
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 ' |