Compute changelog by searching previous tag .. even from a tag

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2020-01-20 16:18:02 +01:00
parent 26f1aeff15
commit 84dad1a0e6
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E

View File

@ -10,7 +10,7 @@ set -x
git config --add remote.origin.fetch +refs/pull/*/head:refs/remotes/origin/pull/*
git fetch origin
RANGE=${1:-"$(git describe --tags --abbrev=0)..HEAD"}
RANGE=${1:-"$(git describe --tags --abbrev=0 HEAD^)..HEAD"}
echo "Generate changelog for range ${RANGE}"
echo