force git directory in version.sh

This commit is contained in:
odrling 2020-02-29 16:23:55 +01:00
parent 93ef90635a
commit 75f929020f
No known key found for this signature in database
GPG Key ID: E24CA7508C27AF5B
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"