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>2018-11-23 16:10:20 +0000
commitcb4aab7406dc8aefb646b37330b722cf9060ad73 (patch)
tree25f23c8026ed72fac66bfaf52045ea0fde2a0c1a
parent19dee675bb9ad012d28e1e57a888931355a831cb (diff)
downloadbitbake-contrib-cb4aab7406dc8aefb646b37330b722cf9060ad73.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 9f02a9da2..b2ff2268e 100644
--- a/lib/bblayers/layerindex.py
+++ b/lib/bblayers/layerindex.py
@@ -28,7 +28,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, None