Преглед на файлове

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

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof преди 5 години
родител
ревизия
84dad1a0e6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      script/release/generate_changelog.sh

+ 1 - 1
script/release/generate_changelog.sh

@@ -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