Skip to content

Commit 360fb81

Browse files
authored
[3.5] bpo-30232: Support Git worktree in configure.ac (#1398) (#1401)
* 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. (cherry picked from commit 5facdbb) * bpo-30232: Regenerate configure (#1396) Run autoconf. (cherry picked from commit 9ed34a8) (cherry picked from commit 4dae0d1)
1 parent 9b854de commit 360fb81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2840,7 +2840,7 @@ fi
28402840

28412841

28422842

2843-
if test -e $srcdir/.git/HEAD
2843+
if test -e $srcdir/.git
28442844
then
28452845
# Extract the first word of "git", so it can be a program name with args.
28462846
set dummy git; ac_word=$2

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)