Force commit hash to 8 digits.

This commit is contained in:
chriseth
2016-09-15 01:47:37 +02:00
parent 2bee7e9171
commit af86bfb07d
3 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ mv solidity solc
# Determine version
cd solc
version=`grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? CMakeLists.txt`
commithash=`git rev-parse --short HEAD`
commithash=`git rev-parse --short=8 HEAD`
committimestamp=`git show --format=%ci HEAD | head -n 1`
commitdate=`git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./'`