bootstrap: Remove undesired output.
authorBruno Haible <bruno@clisp.org>
Tue, 4 Feb 2025 01:00:19 +0000 (02:00 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 4 Feb 2025 01:07:01 +0000 (02:07 +0100)
* top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Silence the initial
branch hint.
* build-aux/bootstrap: Regenerated.

ChangeLog
build-aux/bootstrap
top/bootstrap-funclib.sh

index 6604f7fcec4416552b3a40fbaa63c30958205af3..a5fdf782e1cdafe0cc166e117c2af97ae445c472 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-02-03  Bruno Haible  <bruno@clisp.org>
+
+       bootstrap: Remove undesired output.
+       * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Silence the initial
+       branch hint.
+       * build-aux/bootstrap: Regenerated.
+
 2025-02-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        c-vasnprintf: pacify -Wswitch-enum
index fbbf76f5787ee92fdb5d905a3862fa0f56a3ca4f..2d174cedbd7daf2da007d6aacf20af58cc7262c3 100755 (executable)
@@ -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
index ba531140178a35ccb1dc62442d0e64e8dc164d98..1ad3d85a41fac43c969fd6364ee393893fabd009 100644 (file)
@@ -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