mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
contrib: remove git describe workaround (#4683)
`git describe` fails if no tag can be found, leading to the whole build script to fail. This is not always desired. To prevent `git describe` from failing in this case the `--always` flag can be passed which causes a short commit hash to be output when a tag is not present.
This commit is contained in:
parent
e9f1888321
commit
6c7bfe613f
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ src_dir=$(dirname "$0")
|
|||
cd $src_dir/../..
|
||||
|
||||
export PYTHONHASHSEED=22
|
||||
VERSION=`git describe --tags --dirty`
|
||||
VERSION=`git describe --tags --dirty --always`
|
||||
|
||||
which brew > /dev/null 2>&1 || fail "Please install brew from https://brew.sh/ to continue"
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ pushd $WINEPREFIX/drive_c/electrum
|
|||
git submodule init
|
||||
git submodule update
|
||||
|
||||
VERSION=`git describe --tags --dirty || printf 'custom'`
|
||||
VERSION=`git describe --tags --dirty --always`
|
||||
echo "Last commit: $VERSION"
|
||||
|
||||
pushd ./contrib/deterministic-build/electrum-locale
|
||||
|
|
Loading…
Add table
Reference in a new issue