Skip to content

Commit 000227d

Browse files
committed
Fix tag parsing when doing local tagged builds
1 parent 4a131c8 commit 000227d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

share/genbuild.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$
2828
RAWDESC=$(git describe --abbrev=0 2>/dev/null)
2929
if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 "$RAWDESC" 2>/dev/null)" ]; then
3030
git diff-index --quiet HEAD -- && GIT_TAG=$RAWDESC
31+
# Replace elements- tag with the corresponding v
32+
case "$GIT_TAG" in elements-*) GIT_TAG="v${GIT_TAG#elements-}";; esac
3133
fi
3234

3335
# otherwise generate suffix from git, i.e. string like "59887e8-dirty"

0 commit comments

Comments
 (0)