tcontrib: remove git describe workaround (#4683) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 6c7bfe613f429c3cbe9b7feb770cadd7d8dd090e DIR parent e9f18883211cf823815580df9dfa8ac254ab43f7 HTML Author: Filip Gospodinov <f@gospodinov.ch> Date: Tue, 4 Sep 2018 22:32:46 +0200 contrib: remove git describe workaround (#4683) `git describe` fails if no tag can be found, leading tto the whole build script to fail. This is not always desired. To prevent `git describe` from failing in tthis case the `--always` flag can be passed which causes a short commit hash to be output when a tag is not present. Diffstat: M contrib/build-osx/make_osx | 2 +- M contrib/build-wine/build-electrum-… | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/contrib/build-osx/make_osx b/contrib/build-osx/make_osx t@@ -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" DIR diff --git a/contrib/build-wine/build-electrum-git.sh b/contrib/build-wine/build-electrum-git.sh t@@ -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