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.
This commit is contained in:
Родитель
ac8b2ef563
Коммит
e1c38791b7
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче