;Shake changelogs: avoid an error with untagged release version

(cherry picked from commit b102c2ca5d)
This commit is contained in:
Simon Michael 2020-12-23 14:56:57 -08:00
parent 81b07dd6f5
commit d99c5e3087

View File

@ -639,6 +639,9 @@ main = do
-- a hash (a3f19c15), package release tag (hledger-ui-1.20), or project release tag (1.20)
lastrev
| isOldRelease changelogversion = toTag changelogversion -- package release tag
| isNewRelease changelogversion =
trace (out ++ "'s version \""++changelogversion++"\" is not yet tagged, can't list changes")
"HEAD"
| otherwise = changelogversion
-- interesting commit messages between lastrev and HEAD, cleaned up