aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Arntsen <tor@spacetec.no>2010-03-25 16:23:27 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-03-25 18:27:44 +0100
commite1c38791b79097259e2f93d19968340fd08573a2 (patch)
tree3677a3955d5522b697fb0450d92e670f3eda0db7
parentac8b2ef563cf931c377ecdd3e2a5a055e783ea7b (diff)
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.
-rwxr-xr-xtests/testcurl.pl2
1 files changed, 1 insertions, 1 deletions
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";