diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 9f8f8784673d89ca8122d3e018e73e49fe2ebe15..4d099095b293ca033851b5facb78a178bed2d47e 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -404,7 +404,7 @@ if ($git) {
   }
 
   # get the last 5 commits for show (even if no pull was made)
-  my @commits=`git log --oneline -5`;
+  my @commits=`git log --pretty=oneline --abbrev-commit -5`;
   logit "The most recent git commits:";
   for my $l (@commits) {
       logit "  $l";