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