diff options
author | Ross Burton <ross.burton@intel.com> | 2018-11-23 15:01:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-08 20:15:19 +0000 |
commit | b94d4728b35350b812838cdbc7afada776ad5122 (patch) | |
tree | 1e8ee67ed7a1e14bf13ea1a81fc335a92aaf5b58 | |
parent | 35769412de6387f55e5efa4ebc59a8d1e3c8870f (diff) | |
download | bitbake-contrib-b94d4728b35350b812838cdbc7afada776ad5122.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.py | 2 |
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 |