]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
patman: force git log commands to not use color
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 15 Oct 2012 09:55:50 +0000 (09:55 +0000)
committerTom Rini <trini@ti.com>
Fri, 19 Oct 2012 22:25:46 +0000 (15:25 -0700)
Colored logs confuse patman when analyzing logs.
Add --no-color option in git log commands in case
the default config has color.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@ti.com>
tools/patman/gitutil.py
tools/patman/patchstream.py

index 59eca99341371a5cca58d80cac721d330a2c13e7..72d37a0b04e5bd752b107a95c15c700f33ff4164 100644 (file)
@@ -38,7 +38,7 @@ def CountCommitsToBranch():
     Return:
         Number of patches that exist on top of the branch
     """
-    pipe = [['git', 'log', '--oneline', '@{upstream}..'],
+    pipe = [['git', 'log', '--no-color', '--oneline', '@{upstream}..'],
             ['wc', '-l']]
     stdout = command.RunPipe(pipe, capture=True, oneline=True)
     patch_count = int(stdout)
index 0503bac42e039c8e38ff69e9e1745918ed5b4bc9..ad280cc46ccd61ad63de3fd83addfeea22887292 100644 (file)
@@ -344,7 +344,8 @@ def GetMetaData(start, count):
         start: Commit to start from: 0=HEAD, 1=next one, etc.
         count: Number of commits to list
     """
-    pipe = [['git', 'log', '--reverse', 'HEAD~%d' % start, '-n%d' % count]]
+    pipe = [['git', 'log', '--no-color', '--reverse', 'HEAD~%d' % start,
+       '-n%d' % count]]
     stdout = command.RunPipe(pipe, capture=True)
     series = Series()
     ps = PatchStream(series, is_log=True)