From: Dominik Schmidt <d...@technokrat.ch> This allows the users to specify SRC_URIs of the form git://user:passw...@host.tld/path/to/repo.git
which allows pulling in private repositories. [YOCTO #14065] Signed-off-by: Joshua Watt <jpewhac...@gmail.com> --- bitbake/lib/bb/fetch2/git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index df9538a60d..a1356ed9f0 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -606,7 +606,10 @@ class Git(FetchMethod): # removing the password. ssh keys, ~/.netrc and ~/.ssh/config files can be used as # alternatives so we will not take patches adding password support here. if ud.user: - username = ud.user + '@' + username = ud.user + if ud.pswd: + username += ":" + ud.pswd + username += "@" else: username = "" return "%s://%s%s%s" % (ud.proto, username, ud.host, ud.path) -- 2.30.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#146711): https://lists.openembedded.org/g/openembedded-core/message/146711 Mute This Topic: https://lists.openembedded.org/mt/79678634/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-