bitbake: layerindex: don't use shell=True when cloning

(Bitbake rev: b94d4728b35350b812838cdbc7afada776ad5122)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2018-11-23 15:01:21 +00:00
committed by Richard Purdie
parent 894df54323
commit e313645b88

View File

@@ -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