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

configure
configure.ac

index 7d1f4ade7e2bb893af45a36d6fc021337c8b63c6..8c917351247121487a0dc591c17db1bc43a83081 100755 (executable)
--- 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
index e620b088ca42309364e7ddb5018c47b07aefc5af..aa74259ef58c8e8b79cb41b78cd5b4ecad2a0276 100644 (file)
@@ -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