summaryrefslogtreecommitdiff
path: root/tests/testcurl.pl
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2010-04-12 22:57:48 +0200
committerGuenter Knauf <lists@gknw.net>2010-04-12 22:57:48 +0200
commitf6b7471f4023bc8cb072e659855d91741b4485c6 (patch)
tree6f154aae4a747451dbafba19cbccdfdadead28b8 /tests/testcurl.pl
parent32edba1999a7597f7022662c43bdee8bcb7511e8 (diff)
downloadcurl-f6b7471f4023bc8cb072e659855d91741b4485c6.tar.gz
removed obsolete var in gitpull() function
no need to create a var - lets just return the status var itself.
Diffstat (limited to 'tests/testcurl.pl')
-rwxr-xr-xtests/testcurl.pl7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index c55dcaeef..171110bf0 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -378,17 +378,14 @@ chdir $CURLDIR;
sub gitpull() {
# update quietly to the latest git
if($nogitpull) {
- logit "Skipping git pull (--nogitpull)";
+ logit "skipping git pull (--nogitpull)";
return 1;
}
else {
logit "run git pull";
system("git pull 2>&1");
+ return $?;
}
-
- my $stat=$?;
-
- return $stat;
}
# Do the git thing, or not...