From fa0881442f531053bc6c66d8f8a6345ff40408a8 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 11 Jan 2022 12:29:08 +0100 Subject: [PATCH] make bitbake git fetcher use https:// instead of git:// protocol by default especially since github git:// access is disables as of today, we should default to https:// instead. --- bitbake/lib/bb/fetch2/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index f5d14cc5fe..efb7fa2ca4 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -25,7 +25,7 @@ Supported SRC_URI options are: - protocol The method to use to access the repository. Common options are "git", - "http", "https", "file", "ssh" and "rsync". The default is "git". + "http", "https", "file", "ssh" and "rsync". The default is "https". - rebaseable rebaseable indicates that the upstream git repo may rebase in the future, @@ -145,7 +145,7 @@ class Git(FetchMethod): elif not ud.host: ud.proto = 'file' else: - ud.proto = "git" + ud.proto = "https" if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'): raise bb.fetch2.ParameterError("Invalid protocol type", ud.url)