]> granicus.if.org Git - curl/commitdiff
Use correct directory for c-ares git pull
authorGuenter Knauf <lists@gknw.net>
Tue, 13 Apr 2010 20:55:33 +0000 (22:55 +0200)
committerGuenter Knauf <lists@gknw.net>
Tue, 13 Apr 2010 20:55:33 +0000 (22:55 +0200)
Signed-off-by: Tor Arntsen <tor@spacetec.no>
tests/testcurl.pl

index 8877ac54df5754c5a3d1a659a7c7f246780c80ca..d44c3b1357994b88fd19ec389ea6aecd77c4e8ef 100755 (executable)
@@ -394,8 +394,8 @@ if ($git) {
       chomp ($_);
       logit "  $_";
     }
-    if (-d "$CURLDIR/ares/.git") {
-      chdir "$CURLDIR/ares";
+    if (-d "ares/.git") {
+      chdir "ares";
       logit "run git pull in ares";
       system("git pull 2>&1");
       $gitstat += $?;
@@ -407,7 +407,7 @@ if ($git) {
         chomp ($_);
         logit "  $_";
       }
-      chdir $CURLDIR;
+      chdir "$pwd/$CURLDIR";
     }
     # Set timestamp to the UTC the git update took place.
     $timestamp = scalar(gmtime)." UTC" if (!$gitstat);