diff --git a/Makefile b/Makefile index 4b10a2ff..1bffec59 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ IOS_BUILD := $(IOS_BUILD_DIR)/Lndmobile.framework ANDROID_BUILD_DIR := $(MOBILE_BUILD_DIR)/android ANDROID_BUILD := $(ANDROID_BUILD_DIR)/Lndmobile.aar -COMMIT := $(shell git describe --abbrev=40 --dirty) +COMMIT := $(shell git describe --tags --dirty) COMMIT_HASH := $(shell git rev-parse HEAD) BTCD_COMMIT := $(shell cat go.mod | \ diff --git a/scripts/release.sh b/scripts/release.sh index e73ab3ba..2d12949b 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -37,7 +37,7 @@ function check_tag_correct() { fi # If a tag is specified, ensure that that tag is present and checked out. - if [[ $tag != $(git describe) ]]; then + if [[ $tag != $(git describe --tags) ]]; then red "tag $tag not checked out" exit 1 fi