Skip to content

Commit

Permalink
toolbox-version: grab only the commit hash instead of the commit message
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pfrouleau committed Jul 7, 2014
1 parent 127315a commit 02eb09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 02eb09c

Please sign in to comment.