All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] fetch/git: Handle github dropping git:// support
@ 2021-11-02 12:44 Richard Purdie
  2021-11-02 12:45 ` [PATCH 2/2] fetch/git: Show warning for invalid github urls Richard Purdie
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Richard Purdie @ 2021-11-02 12:44 UTC (permalink / raw)
  To: bitbake-devel

github is dropping support for git procotol iun git urls. Add code to remap
this to https in a way that could be used in older bitbake versions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/fetch2/git.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index e974445fbe..f5be24d6ab 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -142,6 +142,10 @@ class Git(FetchMethod):
             ud.proto = 'file'
         else:
             ud.proto = "git"
+        if ud.host == "github.com" and ud.proto == "git":
+            # github stopped supporting git protocol
+            # https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
+            ud.proto = "https"
 
         if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'):
             raise bb.fetch2.ParameterError("Invalid protocol type", ud.url)
-- 
2.32.0



^ permalink raw reply related	[flat|nested] 13+ messages in thread
[parent not found: <16B3BB5E65837842.31260@lists.openembedded.org>]

end of thread, other threads:[~2021-11-11 12:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 12:44 [PATCH 1/2] fetch/git: Handle github dropping git:// support Richard Purdie
2021-11-02 12:45 ` [PATCH 2/2] fetch/git: Show warning for invalid github urls Richard Purdie
2021-11-02 13:19 ` [bitbake-devel] [PATCH 1/2] fetch/git: Handle github dropping git:// support Konrad Weihmann
2021-11-02 13:27   ` Richard Purdie
2021-11-02 14:06     ` Frank Earl
2021-11-02 14:57       ` Quentin Schulz
2021-11-02 14:51     ` Jan-Simon Moeller
2021-11-02 18:00 ` Peter Kjellerstedt
     [not found] <16B3BB5E65837842.31260@lists.openembedded.org>
2021-11-03 14:13 ` Richard Purdie
2021-11-09 15:40   ` gabriel.valcazar
2021-11-09 15:44     ` [bitbake-devel] " Alexander Kanavin
2021-11-09 15:47     ` Martin Jansa
2021-11-10 15:15       ` gabriel.valcazar
2021-11-11 11:03         ` [bitbake-devel] " Richard Purdie
2021-11-11 12:18           ` gabriel.valcazar
2021-11-11 12:27             ` [bitbake-devel] " Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.