aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/travis-emscripten
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-09-15 07:47:16 +0800
committerchriseth <c@ethdev.com>2016-09-15 07:47:37 +0800
commitaf86bfb07df801d4b9b2d9782f3a6c764a2b9859 (patch)
tree6709b5ddb8e5780455ab6a98b08abf0808e47de7 /scripts/travis-emscripten
parent2bee7e91716a2bfee826f7b648c4cc6de888abbb (diff)
downloaddexon-solidity-af86bfb07df801d4b9b2d9782f3a6c764a2b9859.tar.gz
dexon-solidity-af86bfb07df801d4b9b2d9782f3a6c764a2b9859.tar.zst
dexon-solidity-af86bfb07df801d4b9b2d9782f3a6c764a2b9859.zip
Force commit hash to 8 digits.
Diffstat (limited to 'scripts/travis-emscripten')
-rwxr-xr-xscripts/travis-emscripten/publish_binary.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh
index bfdf9906..d372995c 100755
--- a/scripts/travis-emscripten/publish_binary.sh
+++ b/scripts/travis-emscripten/publish_binary.sh
@@ -33,7 +33,7 @@ set -e
VER=$(cat CMakeLists.txt | grep 'set(PROJECT_VERSION' | sed -e 's/.*set(PROJECT_VERSION "\(.*\)".*/\1/')
test -n "$VER"
VER="v$VER"
-COMMIT=$(git rev-parse --short HEAD)
+COMMIT=$(git rev-parse --short=8 HEAD)
DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%Y.%-m.%-d)
# remove leading zeros in components - they are not semver-compatible