summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/devtool/standard.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 4523048b38..1511641099 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -332,10 +332,11 @@ def _git_ls_tree(repodir, treeish='HEAD', recursive=False):
332 cmd.append('-r') 332 cmd.append('-r')
333 out, _ = bb.process.run(cmd, cwd=repodir) 333 out, _ = bb.process.run(cmd, cwd=repodir)
334 ret = {} 334 ret = {}
335 for line in out.split('\0'): 335 if out:
336 if line: 336 for line in out.split('\0'):
337 split = line.split(None, 4) 337 if line:
338 ret[split[3]] = split[0:3] 338 split = line.split(None, 4)
339 ret[split[3]] = split[0:3]
339 return ret 340 return ret
340 341
341def _git_exclude_path(srctree, path): 342def _git_exclude_path(srctree, path):