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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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";