bpo-30232: Support Git worktree in configure.ac (#1391)

Don't test if .git/HEAD file exists, but only if the .git file (or
directory) exists.
This commit is contained in:
Victor Stinner 2017-05-02 21:42:48 +02:00 committed by GitHub
parent 094909ad69
commit 5facdbb291
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ AC_SUBST(GITVERSION)
AC_SUBST(GITTAG) AC_SUBST(GITTAG)
AC_SUBST(GITBRANCH) AC_SUBST(GITBRANCH)
if test -e $srcdir/.git/HEAD if test -e $srcdir/.git
then then
AC_CHECK_PROG(HAS_GIT, git, found, not-found) AC_CHECK_PROG(HAS_GIT, git, found, not-found)
else else