Git version 2.43 likes to give a verbose hint about the default branch name, when one uses 'git init'.
The 'bootstrap' script uses 'git init'. This patch removes this verbosity. 2025-02-03 Bruno Haible <br...@clisp.org> bootstrap: Remove undesired output. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Silence the initial branch hint. * build-aux/bootstrap: Regenerated. diff --git a/build-aux/bootstrap b/build-aux/bootstrap index fbbf76f578..2d174cedbd 100755 --- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -37,7 +37,7 @@ medir=`dirname "$me"` # A library of shell functions for autopull.sh, autogen.sh, and bootstrap. -scriptlibversion=2025-01-26.03; # UTC +scriptlibversion=2025-02-04.01; # UTC # Copyright (C) 2003-2025 Free Software Foundation, Inc. # @@ -601,7 +601,10 @@ prepare_GNULIB_SRCDIR () # to fetching all commits. # $GNULIB_REVISION can be a commit id, a tag name, or a branch name. mkdir -p "$gnulib_path" - git -C "$gnulib_path" init + # Use a -c option to silence an annoying message + # "hint: Using 'master' as the name for the initial branch." + # (cf. <https://stackoverflow.com/questions/65524512/>). + git -C "$gnulib_path" -c init.defaultBranch=master init git -C "$gnulib_path" remote add origin "$gnulib_url" if git -C "$gnulib_path" fetch $shallow origin "$GNULIB_REVISION" then diff --git a/top/bootstrap-funclib.sh b/top/bootstrap-funclib.sh index ba53114017..1ad3d85a41 100644 --- a/top/bootstrap-funclib.sh +++ b/top/bootstrap-funclib.sh @@ -1,6 +1,6 @@ # A library of shell functions for autopull.sh, autogen.sh, and bootstrap. -scriptlibversion=2025-01-26.03; # UTC +scriptlibversion=2025-02-04.01; # UTC # Copyright (C) 2003-2025 Free Software Foundation, Inc. # @@ -564,7 +564,10 @@ prepare_GNULIB_SRCDIR () # to fetching all commits. # $GNULIB_REVISION can be a commit id, a tag name, or a branch name. mkdir -p "$gnulib_path" - git -C "$gnulib_path" init + # Use a -c option to silence an annoying message + # "hint: Using 'master' as the name for the initial branch." + # (cf. <https://stackoverflow.com/questions/65524512/>). + git -C "$gnulib_path" -c init.defaultBranch=master init git -C "$gnulib_path" remote add origin "$gnulib_url" if git -C "$gnulib_path" fetch $shallow origin "$GNULIB_REVISION" then