+2025-02-16 Bruno Haible <bruno@clisp.org>
+
+ bootstrap: Fix recognition of --depth option with recent git releases.
+ Reported by Benno Schulenberg <bensberg@telfort.nl> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2025-02/msg00106.html>.
+ * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Assume that
+ 'git clone' and 'git fetch' support the --depth option.
+ * build-aux/bootstrap: Regenerated.
+
2025-02-16 Bruno Haible <bruno@clisp.org>
toupper_l: Add tests.
# A library of shell functions for autopull.sh, autogen.sh, and bootstrap.
-scriptlibversion=2025-02-04.01; # UTC
+scriptlibversion=2025-02-16.12; # UTC
# Copyright (C) 2003-2025 Free Software Foundation, Inc.
#
|| cleanup_gnulib
else
# GNULIB_REFDIR is not set or not usable. Ignore it.
- shallow=
+ shallow='--depth 2'
if test -z "$GNULIB_REVISION"; then
- if git clone -h 2>&1 | grep -- --depth > /dev/null; then
- shallow='--depth 2'
- fi
git clone $shallow "$gnulib_url" "$gnulib_path" \
|| cleanup_gnulib
else
- if git fetch -h 2>&1 | grep -- --depth > /dev/null; then
- shallow='--depth 2'
- fi
# Only want a shallow checkout of $GNULIB_REVISION, but git does not
# support cloning by commit hash. So attempt a shallow fetch by
# commit hash to minimize the amount of data downloaded and changes
# A library of shell functions for autopull.sh, autogen.sh, and bootstrap.
-scriptlibversion=2025-02-04.01; # UTC
+scriptlibversion=2025-02-16.12; # UTC
# Copyright (C) 2003-2025 Free Software Foundation, Inc.
#
|| cleanup_gnulib
else
# GNULIB_REFDIR is not set or not usable. Ignore it.
- shallow=
+ shallow='--depth 2'
if test -z "$GNULIB_REVISION"; then
- if git clone -h 2>&1 | grep -- --depth > /dev/null; then
- shallow='--depth 2'
- fi
git clone $shallow "$gnulib_url" "$gnulib_path" \
|| cleanup_gnulib
else
- if git fetch -h 2>&1 | grep -- --depth > /dev/null; then
- shallow='--depth 2'
- fi
# Only want a shallow checkout of $GNULIB_REVISION, but git does not
# support cloning by commit hash. So attempt a shallow fetch by
# commit hash to minimize the amount of data downloaded and changes