aboutsummaryrefslogtreecommitdiff
path: root/t/t9300-fast-import.sh
diff options
context:
space:
mode:
authorVincent van Ravesteijn <vfr@lyx.org>2012-06-11 19:01:53 +0000
committerJunio C Hamano <gitster@pobox.com>2012-06-12 09:30:41 -0700
commita3428205e6d74542d6441baaa29d1cb1d1064d95 (patch)
tree0ee104bbd1c619f46234d342fb6774f44b2f26c8 /t/t9300-fast-import.sh
parent9bea2b5896701cf952f75c8f6756656cd3c40af0 (diff)
downloadgit-a3428205e6d74542d6441baaa29d1cb1d1064d95.tar.gz
git-a3428205e6d74542d6441baaa29d1cb1d1064d95.tar.xz
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/t9300-fast-import.sh')
-rwxr-xr-xt/t9300-fast-import.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh
index 2aa1824a9..007e5af5f 100755
--- a/t/t9300-fast-import.sh
+++ b/t/t9300-fast-import.sh
@@ -12,7 +12,7 @@ test_description='test git fast-import utility'
# This could be written as "head -c $1", but IRIX "head" does not
# support the -c option.
head_c () {
- perl -e '
+ $PERL_PATH -e '
my $len = $ARGV[1];
while ($len > 0) {
my $s;