]> granicus.if.org Git - python/commitdiff
bpo-30232: Support Git worktree in configure.ac (#1391)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 2 May 2017 19:42:48 +0000 (21:42 +0200)
committerGitHub <noreply@github.com>
Tue, 2 May 2017 19:42:48 +0000 (21:42 +0200)
Don't test if .git/HEAD file exists, but only if the .git file (or
directory) exists.

configure.ac

index c58322dc8c7c07c0e38ca3c98e8ed89e108e2dfa..69d2c135bb6a7a5c7e74d2f52bd27995db60f87b 100644 (file)
@@ -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