From e1c38791b79097259e2f93d19968340fd08573a2 Mon Sep 17 00:00:00 2001 From: Tor Arntsen Date: Thu, 25 Mar 2010 16:23:27 +0100 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/testcurl.pl') diff --git a/tests/testcurl.pl b/tests/testcurl.pl index 9f8f87846..4d099095b 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"; -- cgit v1.2.3