From: Bruno Haible Date: Tue, 4 Feb 2025 00:44:49 +0000 (+0100) Subject: build: Remove undesired output from autopull.sh. X-Git-Tag: v0.24~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cec8aba15baee6d2aec9c0f0195ea9c84690496a;p=thirdparty%2Fgettext.git build: Remove undesired output from autopull.sh. * autopull.sh (func_git_clone_shallow): Silence the initial branch hint. --- 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.