bpo-30232: Support Git worktree in configure.ac (#1391) · python/cpython@5facdbb (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 5facdbb

Don't test if .git/HEAD file exists, but only if the .git file (or directory) exists.

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 1 addition & 1 deletion

Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ AC_SUBST(GITVERSION)
29 29 AC_SUBST(GITTAG)
30 30 AC_SUBST(GITBRANCH)
31 31
32 -if test -e $srcdir/.git/HEAD
32 +if test -e $srcdir/.git
33 33 then
34 34 AC_CHECK_PROG(HAS_GIT, git, found, not-found)
35 35 else