mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
make: use --tags to describe commit
This commit is contained in:
parent
ae4a1908dd
commit
330f3c4dd0
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -26,7 +26,7 @@ IOS_BUILD := $(IOS_BUILD_DIR)/Lndmobile.framework
|
||||||
ANDROID_BUILD_DIR := $(MOBILE_BUILD_DIR)/android
|
ANDROID_BUILD_DIR := $(MOBILE_BUILD_DIR)/android
|
||||||
ANDROID_BUILD := $(ANDROID_BUILD_DIR)/Lndmobile.aar
|
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)
|
COMMIT_HASH := $(shell git rev-parse HEAD)
|
||||||
|
|
||||||
BTCD_COMMIT := $(shell cat go.mod | \
|
BTCD_COMMIT := $(shell cat go.mod | \
|
||||||
|
|
|
@ -37,7 +37,7 @@ function check_tag_correct() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If a tag is specified, ensure that that tag is present and checked out.
|
# 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"
|
red "tag $tag not checked out"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue