make bitbake git fetcher use https:// instead of git:// protocol by default

especially since github git:// access is disables as of today, we should
default to https:// instead.
pyro
Harald Welte 9 months ago
parent 69d985c0c3
commit fa0881442f
  1. 4
      bitbake/lib/bb/fetch2/git.py

@ -25,7 +25,7 @@ Supported SRC_URI options are:
- protocol
The method to use to access the repository. Common options are "git",
"http", "https", "file", "ssh" and "rsync". The default is "git".
"http", "https", "file", "ssh" and "rsync". The default is "https".
- rebaseable
rebaseable indicates that the upstream git repo may rebase in the future,
@ -145,7 +145,7 @@ class Git(FetchMethod):
elif not ud.host:
ud.proto = 'file'
else:
ud.proto = "git"
ud.proto = "https"
if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'):
raise bb.fetch2.ParameterError("Invalid protocol type", ud.url)

Loading…
Cancel
Save