From 4c015942b17772e31d9295285714d67f8ae5a5a7 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 8 Apr 2020 15:18:34 +0200 Subject: [PATCH] build: fix git detection for worktrees When using additional git worktrees, .git is not a directory. Signed-off-by: David Lamparter --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 628e0c8afc..35261aced4 100755 --- a/configure.ac +++ b/configure.ac @@ -860,7 +860,7 @@ fi AC_SUBST([EXTRAVERSION]) if test "$with_pkg_git_version" = "yes"; then - if test -d "${srcdir}/.git"; then + if test -e "${srcdir}/.git"; then AC_DEFINE([GIT_VERSION], [1], [include git version info]) else with_pkg_git_version="no" AC_MSG_WARN([--with-pkg-git-version given, but this is not a git checkout]) -- 2.39.5