From 1ca609715206679b41e72c012fa62641f4695175 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Fri, 16 Mar 2012 11:58:38 -0400 Subject: Fixed sha to not have the 'g' for git. Swapped 'r' to 'v' now that I've had more coffee and sleep. --- tools/get-scala-commit-sha | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/get-scala-commit-sha') 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" -- cgit v1.2.3