summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-05-03 00:05:45 +0200
committerGitHub <noreply@github.com>2017-05-03 00:05:45 +0200
commitdf5692549a68741d3d02eeee28f9fef74f349712 (patch)
treec39b260bcb1a5eed9f40b92e1332bcd400bcd5e7 /configure.ac
parent8105dd7f75b6aa5f812522d452cd378372752a10 (diff)
downloadcpython-git-df5692549a68741d3d02eeee28f9fef74f349712.tar.gz
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e620b088ca..aa74259ef5 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