t5562: fix perl path
authorJeff King <peff@peff.net>
Thu, 22 Nov 2018 23:38:21 +0000 (01:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 24 Nov 2018 01:44:30 +0000 (10:44 +0900)
Some systems do not have perl installed to /usr/bin. Use the variable
from the build settiings, and call perl directly than via shebang.

Signed-off-by: Max Kirillov <max@max630.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5562-http-backend-content-length.sh
t/t5562/invoke-with-content-length.pl [changed mode: 0755->0644]
index b24d8b05a498674612870a133e1a4fc4a37bd5d3..90d890d02fd8f5451d0d78d880f6698d11b22a3d 100755 (executable)
@@ -31,6 +31,7 @@ test_http_env() {
                PATH_TRANSLATED="$PWD/.git/git-$handler_type-pack" \
                GIT_HTTP_EXPORT_ALL=TRUE \
                REQUEST_METHOD=POST \
+               "$PERL_PATH" \
                "$TEST_DIRECTORY"/t5562/invoke-with-content-length.pl \
                    "$request_body" git http-backend >act.out 2>act.err
 }
old mode 100755 (executable)
new mode 100644 (file)
index 6c2aae7..0943474
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 use 5.008;
 use strict;
 use warnings;