Skip to content

Commit

Permalink
bpo-30232: Support Git worktree in configure.ac (#1391)
Browse files Browse the repository at this point in the history
Don't test if .git/HEAD file exists, but only if the .git file (or
directory) exists.
  • Loading branch information
vstinner committed May 2, 2017
1 parent 094909a commit 5facdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5facdbb

Please sign in to comment.