All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitbake: fetch2/git: Escape parentheses in git src name
@ 2024-03-10  3:33 Philippe Rivest
  2024-04-13 10:20 ` [bitbake-devel] " Paulo Neves
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Rivest @ 2024-03-10  3:33 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Philippe Rivest, Philippe Rivest

From: Philippe Rivest <technophil98@gmail.com>

FIXES [YOCTO #15404]

When using git fetcher on a repo with parentheses in its URL, the
invocation of the git clone command will fail. The clone directory
is not quoted thus the shell will return an error and won't execute
the command.

(Bitbake rev: b5624ee5643d881afa004571a096a189ab5389b5)

Cc: Philippe Rivest <privest@genetec.com>

Signed-off-by: Philippe Rivest <technophil98@gmail.com>
---
 bitbake/lib/bb/fetch2/git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index b9dc576d47..6170da7fa6 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -277,7 +277,7 @@ class Git(FetchMethod):
                     ud.unresolvedrev[name] = ud.revisions[name]
                 ud.revisions[name] = self.latest_revision(ud, d, name)
 
-        gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.').replace(' ','_'))
+        gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.').replace(' ','_').replace('(', '_').replace(')', '_'))
         if gitsrcname.startswith('.'):
             gitsrcname = gitsrcname[1:]
 
-- 
2.40.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-23 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-10  3:33 [PATCH] bitbake: fetch2/git: Escape parentheses in git src name Philippe Rivest
2024-04-13 10:20 ` [bitbake-devel] " Paulo Neves
2024-04-23 13:51   ` Philippe Rivest

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.