build-aux/git-version-gen: Ignore timestamps.
Do not declare the working tree dirty if only a timestamp has changed. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
c61a63a46d
commit
ee369c596f
@ -10,6 +10,7 @@ VERFILE="$1"
|
||||
|
||||
if [ -d '.git' ]
|
||||
then
|
||||
git update-index --refresh > /dev/null 2>&1
|
||||
VERSION=`git describe --abbrev=4 --match='v[0-9]*' --dirty 2>/dev/null`
|
||||
VERSION=`echo "$VERSION" | sed 's/^v//'`
|
||||
[ -n "$VERSION" ] && echo -n "$VERSION" > "$VERFILE"
|
||||
|
Loading…
x
Reference in New Issue
Block a user