From 5c06c0c7bb7ac6c82368d510f1462ece2e61c62f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 01 Aug 2019 20:19:03 -0400 Subject: build: Set GIT_DIR earlier in announce script --- diff --git a/scripts/announce-release.sh b/scripts/announce-release.sh index ae26070..dee51c1 100755 --- a/scripts/announce-release.sh +++ b/scripts/announce-release.sh @@ -17,6 +17,8 @@ version="${2}" package_name="${3}" srcdir="${0%/scripts/announce-release.sh}" +export GIT_DIR="${srcdir}/.git" + heading() { local name="${1}" @@ -51,8 +53,6 @@ old_tag="$(git tag --sort=-creatordate | sed -n '2{p;q;}')" # Empty tree SHA-1 hash: [ -z "${old_tag}" ] && old_tag='4b825dc642cb6eb9a060e54bf8d69288fbee4904' -export GIT_DIR="${srcdir}/.git" - shortlog="$(git shortlog "${old_tag}..HEAD" | \ sed '/^..*$/s/^//')" if [ $(printf '%s\n' "${shortlog}" | wc -l) -gt 100 ]; then -- cgit v0.9.1