armbian-next: [focal-host] don't use git's --initial-branch which is not supported on focal's git

This commit is contained in:
Ricardo Pardini 2023-01-05 15:43:57 +01:00
parent ac81b410e0
commit 8d55a3258b
No known key found for this signature in database
GPG Key ID: 3D38CA12A66C5D02

View File

@ -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