mirror of
https://github.com/tj/git-extras.git
synced 2026-09-11 07:56:18 -04:00
Fixed git-changelog errors when multiple files match change|history
This commit is contained in:
parent
de6463fbee
commit
4145f228e4
|
|
@ -40,7 +40,7 @@ fi
|
|||
|
||||
CHANGELOG=$FILE
|
||||
if test "$CHANGELOG" = ""; then
|
||||
CHANGELOG=`ls | egrep 'change|history' -i`
|
||||
CHANGELOG=`ls | egrep 'change|history' -i|head -n1`
|
||||
if test "$CHANGELOG" = ""; then
|
||||
CHANGELOG='History.md';
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue