Skip to content

Commit

Permalink
Fix CI dirty suffix on tagged releases (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl authored Jan 28, 2022
1 parent ad5960d commit 40b8d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/genbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$
git diff >/dev/null 2>/dev/null

# if latest commit is tagged and not dirty, then override using the tag name
RAWDESC=$(git describe --abbrev=0 2>/dev/null)
RAWDESC=$(git describe --tags --abbrev=0 2>/dev/null)
if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 $RAWDESC 2>/dev/null)" ]; then
git diff-index --quiet HEAD -- && DESC=$RAWDESC
fi
Expand Down

0 comments on commit 40b8d7c

Please sign in to comment.