mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
* 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 commit5facdbb291) * bpo-30232: Regenerate configure (#1396) Run autoconf. (cherry picked from commit9ed34a8953) (cherry picked from commit4dae0d111d)
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -2840,7 +2840,7 @@ fi
|
||||
|
||||
|
||||
|
||||
if test -e $srcdir/.git/HEAD
|
||||
if test -e $srcdir/.git
|
||||
then
|
||||
# Extract the first word of "git", so it can be a program name with args.
|
||||
set dummy git; ac_word=$2
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user