Skip to content
Snippets Groups Projects
Commit 803a8bd2 authored by Raymond Toy's avatar Raymond Toy
Browse files

Use git describe instead of git log to get a version.

parent 15db498a
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ version=20b
SRCDIR=src
TOOLDIR=$SRCDIR/tools
VERSION="`date '+%Y-%m-%d %H:%M:%S'`"
GIT_HASH="`(cd src; git log -1 --pretty=format:%t 2>/dev/null)`"
GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
# Add the tree hash to the version
VERSION="$VERSION $GIT_HASH"
BASE=build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment