diff options
author | Tor Arntsen <tor@spacetec.no> | 2010-03-25 16:23:27 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-03-25 18:27:44 +0100 |
commit | e1c38791b79097259e2f93d19968340fd08573a2 (patch) | |
tree | 3677a3955d5522b697fb0450d92e670f3eda0db7 | |
parent | ac8b2ef563cf931c377ecdd3e2a5a055e783ea7b (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-x | tests/testcurl.pl | 2 |
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"; |