force git directory in version.sh

This commit is contained in:
odrling 2020-02-29 16:23:55 +01:00
parent 3e0d4bcdab
commit fc5277492c
No known key found for this signature in database
GPG Key ID: EC907F69A27A90C5
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
builddir="$1"
srcdir="$2"
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="${builddir}/git_version.h"