From: Daniel Stenberg Date: Thu, 25 Mar 2010 12:56:01 +0000 (+0100) Subject: show 5 commits even if no git pull was made X-Git-Tag: curl-7_20_1~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac8b2ef563cf931c377ecdd3e2a5a055e783ea7b;p=thirdparty%2Fcurl.git show 5 commits even if no git pull was made --- diff --git a/tests/testcurl.pl b/tests/testcurl.pl index e6026dd620..9f8f878467 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -401,13 +401,13 @@ if ($git) { elsif (!$nogitpull) { # Set timestamp to the UTC the git update took place. $timestamp = scalar(gmtime)." UTC"; + } - # get the last 5 commits for show - my @commits=`git log --oneline -5`; - logit "The most recent git commits:"; - for my $l (@commits) { + # get the last 5 commits for show (even if no pull was made) + my @commits=`git log --oneline -5`; + logit "The most recent git commits:"; + for my $l (@commits) { logit " $l"; - } } if($nobuildconf) {