summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/git.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 82d7325188..ac996fa166 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -140,6 +140,10 @@ class Git(FetchMethod):
140 ud.proto = 'file' 140 ud.proto = 'file'
141 else: 141 else:
142 ud.proto = "git" 142 ud.proto = "git"
143 if ud.host == "github.com" and ud.proto == "git":
144 # github stopped supporting git protocol
145 # https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
146 ud.proto = "https"
143 147
144 if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'): 148 if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'):
145 raise bb.fetch2.ParameterError("Invalid protocol type", ud.url) 149 raise bb.fetch2.ParameterError("Invalid protocol type", ud.url)