tools/version.sh : Get first 7 chars of commit hash
7 characters are enough to identify the commit, let's get only 7 chars instead of full hash to save memory and printing time.
@@ -137,7 +137,7 @@ if [ -z "${BUILD}" ]; then
echo "GIT version information is not available"
BUILD=NA
else
- BUILD=`echo ${GITINFO} | cut -d' ' -f2`
+ BUILD=`echo ${GITINFO} | cut -d' ' -f2 | cut -c -7`
if [ -z "${BUILD}" ]; then
echo "GIT build information not found"
BUILD=NA
