Append the password to the username on git URI reassembling.
PATCH 1/1 Append the password to the username on git URI reassembling.
This allows the users to specify SRC_URIs of the form
git://user:[email protected]/path/to/repo.git
which allows pulling in private repositories.
--- lib/bb/fetch2/git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
lib/bb/fetch2/git.py +4 -1
@@ -596,7 +596,10 @@ class Git(FetchMethod): Return the repository URL """ 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)
Signature · 1 line
2.25.1
Quoted 6 lines · Dominik Schmidt
This allows the users to specify
SRC_URIsof the form
git://user:[email protected]/path/to/repo.gitwhich allows pulling in private repositories.
This has been discussed and rejected before multiple times, see for example https://lists.openembedded.org/g/bitbake-devel/topic/72129859.
Thanks,
Signature · 2 lines
Paul Barker Konsulko Group
Quoted 11 lines · Paul Barker
Quoted 5 lines · Dominik Schmidt
This allows the users to specify
SRC_URIsof the form
git://user:[email protected]/path/to/repo.gitwhich allows pulling in private repositories.
This has been discussed and rejected before multiple times, see for example https://lists.openembedded.org/g/bitbake-devel/topic/72129859
.
I think we should put a comment in the code about this as we keep getting patches...
Cheers,
Richard