summaryrefslogtreecommitdiff
path: root/t/t5551-http-fetch.sh
diff options
context:
space:
mode:
authorVincent van Ravesteijn <vfr@lyx.org>2012-06-11 19:01:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-06-12 16:30:41 (GMT)
commita3428205e6d74542d6441baaa29d1cb1d1064d95 (patch)
tree0ee104bbd1c619f46234d342fb6774f44b2f26c8 /t/t5551-http-fetch.sh
parent9bea2b5896701cf952f75c8f6756656cd3c40af0 (diff)
downloadgit-a3428205e6d74542d6441baaa29d1cb1d1064d95.zip
git-a3428205e6d74542d6441baaa29d1cb1d1064d95.tar.gz
git-a3428205e6d74542d6441baaa29d1cb1d1064d95.tar.bz2
t: Replace 'perl' by $PERL_PATH
GIT-BUILD-OPTIONS defines PERL_PATH to be used in the test suite. Only a few tests already actually use this variable when perl is needed. The other test just call 'perl' and it might happen that the wrong perl interpreter is used. This becomes problematic on Windows, when the perl interpreter that is compiled and installed on the Windows system is used, because this perl interpreter might introduce some unexpected LF->CRLF conversions. This patch makes sure that $PERL_PATH is used everywhere in the test suite and that the correct perl interpreter is used. Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5551-http-fetch.sh')
-rwxr-xr-xt/t5551-http-fetch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5551-http-fetch.sh b/t/t5551-http-fetch.sh
index be6094b..0667a3b 100755
--- a/t/t5551-http-fetch.sh
+++ b/t/t5551-http-fetch.sh
@@ -130,7 +130,7 @@ test_expect_success EXPENSIVE 'create 50,000 tags in the repo' '
done | git fast-import --export-marks=marks &&
# now assign tags to all the dangling commits we created above
- tag=$(perl -e "print \"bla\" x 30") &&
+ tag=$($PERL_PATH -e "print \"bla\" x 30") &&
sed -e "s/^:\(.\+\) \(.\+\)$/\2 refs\/tags\/$tag-\1/" <marks >>packed-refs
)
'