summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2012-03-16 11:58:38 -0400
committerJosh Suereth <joshua.suereth@gmail.com>2012-03-16 12:09:35 -0400
commit1ca609715206679b41e72c012fa62641f4695175 (patch)
tree505a94ecec49ca8edb71fd5b2dfe529cdfb3141a /tools
parent49b3e840ef06ff294fccb590919b66f427594e20 (diff)
downloadscala-1ca609715206679b41e72c012fa62641f4695175.tar.gz
scala-1ca609715206679b41e72c012fa62641f4695175.tar.bz2
scala-1ca609715206679b41e72c012fa62641f4695175.zip
Fixed sha to not have the 'g' for git.
Swapped 'r' to 'v' now that I've had more coffee and sleep.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/get-scala-commit-sha3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/get-scala-commit-sha b/tools/get-scala-commit-sha
index 0aa70d985c..0abe31a53c 100755
--- a/tools/get-scala-commit-sha
+++ b/tools/get-scala-commit-sha
@@ -5,7 +5,7 @@
# If no dir is given, current working dir is used.
#
# Example build version string:
-# g6f1c486d0b
+# 6f1c486d0ba
#
[[ $# -eq 0 ]] || cd "$1"
@@ -35,5 +35,6 @@ tag=$(git describe --tags --match 'v2*' --abbrev=0)
described=$(git describe --tags --match 'v2*' --abbrev=10)
suffix="${described##${tag}-}"
hash=$(echo $suffix | cut -d - -f 2)
+hash=${hash#g}
echo "$hash"