]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
show 5 commits even if no git pull was made
authorDaniel Stenberg <daniel@haxx.se>
Thu, 25 Mar 2010 12:56:01 +0000 (13:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Mar 2010 12:56:01 +0000 (13:56 +0100)
tests/testcurl.pl

index e6026dd620a955e7183d14c098e5f8ada5db0f79..9f8f8784673d89ca8122d3e018e73e49fe2ebe15 100755 (executable)
@@ -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) {