force git directory in version.sh

This commit is contained in:
odrling 2020-02-29 16:23:55 +01:00
parent 4159cdcebd
commit 0d03097a4e
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
srcdir="$1"
export GIT_DIR="${srcdir}/.git"
# If no git repo try to read from the existing git_version.h, for building from tarballs
version_h_path="${srcdir}/git_version.h"