path: root/t/
diff options
authorVincent van Ravesteijn <>2012-06-11 19:01:53 (GMT)
committerJunio C Hamano <>2012-06-12 16:30:41 (GMT)
commita3428205e6d74542d6441baaa29d1cb1d1064d95 (patch)
tree0ee104bbd1c619f46234d342fb6774f44b2f26c8 /t/
parent9bea2b5896701cf952f75c8f6756656cd3c40af0 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 1 insertions, 1 deletions
diff --git a/t/ b/t/
index b00196b..6b6dc20 100755
--- a/t/
+++ b/t/
@@ -424,7 +424,7 @@ test_expect_success 'fast-export quotes pathnames' '
--cacheinfo 100644 $blob "path with \\backslash" \
--cacheinfo 100644 $blob "path with space" &&
git commit -m addition &&
- git ls-files -z -s | perl -0pe "s{\\t}{$&subdir/}" >index &&
+ git ls-files -z -s | $PERL_PATH -0pe "s{\\t}{$&subdir/}" >index &&
git read-tree --empty &&
git update-index -z --index-info <index &&
git commit -m rename &&