diff mbox series

fetch2/gitsm: Document that we won't support propagating user parameter

Message ID 20230728162751.1683289-1-yoann.congal@smile.fr
State Accepted, archived
Commit 5e45b8eab60d651c98a950533043a4c96b9c8b01
Headers show
Series fetch2/gitsm: Document that we won't support propagating user parameter | expand

Commit Message

Yoann Congal July 28, 2023, 4:27 p.m. UTC
[YOCTO #13550]

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 lib/bb/fetch2/gitsm.py | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/lib/bb/fetch2/gitsm.py b/lib/bb/fetch2/gitsm.py
index f8e239bc5..47225b972 100644
--- a/lib/bb/fetch2/gitsm.py
+++ b/lib/bb/fetch2/gitsm.py
@@ -123,6 +123,12 @@  class GitSM(Git):
             url += ";name=%s" % module
             url += ";subpath=%s" % module
             url += ";nobranch=1"
+            # Note that adding "user=" here to give credentials to the
+            # submodule is not supported. Since using SRC_URI to give git://
+            # URL a password is not supported, one have to use one of the
+            # recommended way (eg. ~/.netrc or SSH config) which does specify
+            # the user (See comment in git.py).
+            # So, we will not take patches adding "user=" support here.
 
             ld = d.createCopy()
             # Not necessary to set SRC_URI, since we're passing the URI to