summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorChris Laplante <chris.laplante@agilent.com>2025-09-03 11:45:03 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-03 17:43:31 +0000
commit8b3527db66f6782e8c27ae0db3b7fe8036f0ea3b (patch)
treee0982ee34e154255e9586c343d02cba8a1a79f00 /bitbake/lib/bb/fetch2/git.py
parent726d6ecd5cc982933db22ab96b4d39d99275b88c (diff)
downloadpoky-8b3527db66f6782e8c27ae0db3b7fe8036f0ea3b.tar.gz
bitbake: fetch2/git: when raising ParameterError for an invalid proto, include the proto in the message
(Bitbake rev: 671314811ac1c023efacc6a2f148d8d84ba1adb2) Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 52fffe21d7..0fcdb19df1 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -163,7 +163,7 @@ class Git(FetchMethod):
163 bb.warn("URL: %s uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url." % ud.url) 163 bb.warn("URL: %s uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url." % ud.url)
164 164
165 if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'): 165 if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'):
166 raise bb.fetch2.ParameterError("Invalid protocol type", ud.url) 166 raise bb.fetch2.ParameterError(f"Invalid protocol type: '{ud.proto}'", ud.url)
167 167
168 ud.nocheckout = ud.parm.get("nocheckout","0") == "1" 168 ud.nocheckout = ud.parm.get("nocheckout","0") == "1"
169 169