From cec8aba15baee6d2aec9c0f0195ea9c84690496a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 4 Feb 2025 01:44:49 +0100 Subject: [PATCH] build: Remove undesired output from autopull.sh. * autopull.sh (func_git_clone_shallow): Silence the initial branch hint. --- autopull.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autopull.sh b/autopull.sh index 6eecb3d3b..87dd47806 100755 --- a/autopull.sh +++ b/autopull.sh @@ -62,7 +62,10 @@ func_git_clone_shallow () # to fetching all commits. # REVISION can be a commit id, a tag name, or a branch name. mkdir -p "$1" - git -C "$1" init + # Use a -c option to silence an annoying message + # "hint: Using 'master' as the name for the initial branch." + # (cf. ). + git -C "$1" -c init.defaultBranch=master init git -C "$1" remote add origin "$2" if git -C "$1" fetch --depth 1 origin "$3"; then # "git fetch" of the specific commit succeeded. -- 2.47.3