Skip to content

Commit 5facdbb

Browse files
authored
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.
1 parent 094909a commit 5facdbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ AC_SUBST(GITVERSION)
2929
AC_SUBST(GITTAG)
3030
AC_SUBST(GITBRANCH)
3131

32-
if test -e $srcdir/.git/HEAD
32+
if test -e $srcdir/.git
3333
then
3434
AC_CHECK_PROG(HAS_GIT, git, found, not-found)
3535
else

0 commit comments

Comments
 (0)