fix version.sh when building from a git worktree

In a git worktree .git is a regular file that contains a reference to
its git directory
This commit is contained in:
odrling 2024-01-21 02:01:30 +01:00
parent d2400ac6d0
commit 6bd3a9121c
No known key found for this signature in database
GPG Key ID: E24CA7508C27AF5B
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ 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"
if ! test -d "${srcdir}/.git"; then
if ! test -e "${srcdir}/.git"; then
if test -f "${version_h_path}"; then
while read line; do
set -- $line