From 6d930e78629cbef74918b505b9ad4c73865891e9 Mon Sep 17 00:00:00 2001 From: odrling Date: Sun, 21 Jan 2024 02:01:30 +0100 Subject: [PATCH] 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 --- tools/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/version.sh b/tools/version.sh index df354d0de..3a993e1be 100755 --- a/tools/version.sh +++ b/tools/version.sh @@ -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