From 02eb09c83f18e2367af54516f35576166dbb947b Mon Sep 17 00:00:00 2001 From: Patrick Rouleau Date: Mon, 7 Jul 2014 18:40:28 -0400 Subject: [PATCH] toolbox-version: grab only the commit hash instead of the commit message This change prevent toolbox-version to keep too many lines when it updates src/version.h, which was happening when the commit message contains the word "commit". Signed-off-by: Patrick Rouleau --- toolbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox b/toolbox index bb875e6a..c5cc1b62 100755 --- a/toolbox +++ b/toolbox @@ -96,7 +96,7 @@ then scriptdir=`dirname "$0"` file="$scriptdir/src/version.h" GIT_REPOSITORY=`git remote -v | grep partclone` - GIT_REVISION=`git log -1 | grep commit | sed 's/commit //'` + GIT_REVISION=`git log -1 --format=%H` #GIT_REVISION_UPSTREAM=`git log master -1 | grep commit | sed 's/commit //'` git_ver="none"