Skip to content
Snippets Groups Projects
Commit e1c38791 authored by Tor Arntsen's avatar Tor Arntsen Committed by Daniel Stenberg
Browse files

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.
parent ac8b2ef5
No related branches found
No related tags found
No related merge requests found
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment