From 2195006c78bb76f2519837f5ab94f08c67f24b47 Mon Sep 17 00:00:00 2001
From: Tor Arntsen <tor@spacetec.no>
Date: Thu, 25 Mar 2010 16:23:27 +0100
Subject: [PATCH] Change to version-independent git option for 'git log --oneline'

'git log --oneline' is a relatively recent Git function. It is
documented to be the same as 'git log --pretty=oneline --abbrev-commit',
so use that instead. It works all the way back to Git 1.5.0.
---
 tests/testcurl.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 9f8f878..4d09909 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";
-- 
1.5.0.3

