From: Victor Stinner Date: Tue, 2 May 2017 22:05:45 +0000 (+0200) Subject: bpo-30232: Support Git worktree in configure.ac (#1402) X-Git-Tag: v2.7.14rc1~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df5692549a68741d3d02eeee28f9fef74f349712;p=thirdparty%2FPython%2Fcpython.git bpo-30232: Support Git worktree in configure.ac (#1402) Don't test if .git/HEAD file exists, but only if the .git file (or directory) exists. --- diff --git a/configure b/configure index 7d1f4ade7e2b..8c9173512471 100755 --- a/configure +++ b/configure @@ -5691,7 +5691,7 @@ fi -if test -e $srcdir/.git/HEAD +if test -e $srcdir/.git then # Extract the first word of "git", so it can be a program name with args. set dummy git; ac_word=$2 diff --git a/configure.ac b/configure.ac index e620b088ca42..aa74259ef58c 100644 --- a/configure.ac +++ b/configure.ac @@ -983,7 +983,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