From 8d55a3258b45b445b9460f47536f352ef2fd030d Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Thu, 5 Jan 2023 15:43:57 +0100 Subject: [PATCH] armbian-next: [focal-host] don't use git's `--initial-branch` which is not supported on focal's git --- lib/functions/general/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/general/git.sh b/lib/functions/general/git.sh index a23f039040..d7b612fb2d 100644 --- a/lib/functions/general/git.sh +++ b/lib/functions/general/git.sh @@ -132,7 +132,7 @@ fetch_from_repo() { if [[ ! -d ".git" || "$(git rev-parse --git-dir)" != ".git" ]]; then # Dir is not a git working copy. Make it so; display_alert "Initializing empty git local copy" "git init: $dir $ref_name" - regular_git init -q --initial-branch="armbian_unused_initial_branch" . + regular_git init -q . # --initial-branch="armbian_unused_initial_branch" is not supported under focal offline=false # Force online, we'll need to fetch. fi fi