aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/testcurl.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index b48c2842e..c55dcaeef 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -78,6 +78,10 @@ $fixed=0;
# Determine if we're running from git or a canned copy of curl,
# or if we got a specific target option or setup file option.
$CURLDIR="curl";
+if (-f ".git/config") {
+ $CURLDIR = "./";
+}
+
$git=1;
$setupfile = 'setup';
while ($ARGV[0]) {