summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorPhilippe Rivest <technophil98@gmail.com>2024-03-09 19:33:19 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-22 16:26:45 +0000
commit2eeef2800b309e68f54855e4425d151e663a3f59 (patch)
treedc721fbd61a36f745e5b0a1b0c3388636c56ca38 /bitbake/lib/bb/fetch2/git.py
parentecb1248914c8ebc567e6977864d84da968e17543 (diff)
downloadpoky-2eeef2800b309e68f54855e4425d151e663a3f59.tar.gz
bitbake: bitbake: fetch2/git: Escape parentheses in git src name
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> (Bitbake rev: 12f9738577934ad7c99f0770f1392a9d6050e7d6) Signed-off-by: Philippe Rivest <technophil98@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
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):
277 ud.unresolvedrev[name] = ud.revisions[name] 277 ud.unresolvedrev[name] = ud.revisions[name]
278 ud.revisions[name] = self.latest_revision(ud, d, name) 278 ud.revisions[name] = self.latest_revision(ud, d, name)
279 279
280 gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.').replace(' ','_')) 280 gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.').replace(' ','_').replace('(', '_').replace(')', '_'))
281 if gitsrcname.startswith('.'): 281 if gitsrcname.startswith('.'):
282 gitsrcname = gitsrcname[1:] 282 gitsrcname = gitsrcname[1:]
283 283