]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
patman: Use --no-pager' to stop git from forking a pager
authorSimon Glass <sjg@chromium.org>
Thu, 28 Aug 2014 15:43:37 +0000 (09:43 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 5 Sep 2014 19:40:42 +0000 (13:40 -0600)
In a headless environment the pager can apparently hang. We don't want a
pager anyway so let's request that none be used.

Reported-by: Tom Rini <trini@ti.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/gitutil.py

index 45276e6039107c5e43c0713579a5f2d4422eec6d..fbd170f178df8b207ec4cc0a938bbbfe8c7bff32 100644 (file)
@@ -33,7 +33,7 @@ def LogCmd(commit_range, git_dir=None, oneline=False, reverse=False,
     cmd = ['git']
     if git_dir:
         cmd += ['--git-dir', git_dir]
-    cmd += ['log', '--no-color']
+    cmd += ['--no-pager', 'log', '--no-color']
     if oneline:
         cmd.append('--oneline')
     if use_no_decorate: