mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
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>
This commit is contained in:
parent
726d6ecd5c
commit
8b3527db66
|
|
@ -163,7 +163,7 @@ class Git(FetchMethod):
|
||||||
bb.warn("URL: %s uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url." % ud.url)
|
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'):
|
if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'):
|
||||||
raise bb.fetch2.ParameterError("Invalid protocol type", ud.url)
|
raise bb.fetch2.ParameterError(f"Invalid protocol type: '{ud.proto}'", ud.url)
|
||||||
|
|
||||||
ud.nocheckout = ud.parm.get("nocheckout","0") == "1"
|
ud.nocheckout = ud.parm.get("nocheckout","0") == "1"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user