aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-02 12:42:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-03 10:09:59 +0000
commit42526a402357e04794f4cb6f21ac18f562220a9b (patch)
tree1f94d87ff587298b9575903d92c2a485b26f694a /lib/bb/fetch2/git.py
parentf05e19135b3ddee509c0cb427b3b9376bb4738d1 (diff)
downloadbitbake-42526a402357e04794f4cb6f21ac18f562220a9b.tar.gz
fetch/git: Show warning for invalid github urls
On master, tell the users they need to update their urls for github. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/git.py')
-rw-r--r--lib/bb/fetch2/git.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 462c4d082..30da8e95b 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -146,6 +146,7 @@ class Git(FetchMethod):
# github stopped supporting git protocol
# https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
ud.proto = "https"
+ bb.warn("URL: %s uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url." % ud.url)
if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'):
raise bb.fetch2.ParameterError("Invalid protocol type", ud.url)