aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-11-23 15:01:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-25 22:19:55 +0000
commitfd1504a5e92390b8e1c0e689b4c2cb0ac7096b1a (patch)
tree7c747bef11449c7df3df0e4fd1ee991287164af6
parentd150e50355444b0a67cad4d6a100d9bf6fadb2ae (diff)
downloadbitbake-fd1504a5e92390b8e1c0e689b4c2cb0ac7096b1a.tar.gz
layerindex: don't use shell=True when cloning
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bblayers/layerindex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py
index 9af385db5..ac7813372 100644
--- a/lib/bblayers/layerindex.py
+++ b/lib/bblayers/layerindex.py
@@ -133,7 +133,7 @@ class LayerIndexPlugin(ActionPlugin):
layerdir = os.path.join(repodir, subdir)
if not os.path.exists(repodir):
if fetch_layer:
- result = subprocess.call('git clone %s %s' % (url, repodir), shell = True)
+ result = subprocess.call(['git', 'clone', url, repodir])
if result:
logger.error("Failed to download %s" % url)
return None, None