From 371d82ee2583e27754b44cfb4d227e8a64173f7e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 2 May 2017 17:00:42 +0200 Subject: [PATCH] bpo-30232: Support Git worktree in configure.ac Don't test if .git/HEAD file exists, but only if the .git file (or directory) exists. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c58322dc8c7c07..69d2c135bb6a7a 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ AC_SUBST(GITVERSION) AC_SUBST(GITTAG) AC_SUBST(GITBRANCH) -if test -e $srcdir/.git/HEAD +if test -e $srcdir/.git then AC_CHECK_PROG(HAS_GIT, git, found, not-found) else