mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
[3.6] bpo-30232: Support Git worktree in configure.ac (#1398)
* 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
)
This commit is contained in:
parent
3c422b9265
commit
4dae0d111d
2 changed files with 2 additions and 2 deletions
2
configure
vendored
2
configure
vendored
|
@ -2711,7 +2711,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue