You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/10/21 19:41:35 UTC
[kibble-scanners] branch master updated: keep it quiet unless there
is an error
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git
The following commit(s) were added to refs/heads/master by this push:
new 2df7117 keep it quiet unless there is an error
2df7117 is described below
commit 2df7117c6538df3b33ddd5fd919739b2c3827143
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Oct 21 21:41:27 2017 +0200
keep it quiet unless there is an error
git keeps 'odd' output for stderr, so pipe that
to stdout and only print if return code isn't 0
---
src/plugins/scanners/git-evolution.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/scanners/git-evolution.py b/src/plugins/scanners/git-evolution.py
index 500a746..8ed648c 100644
--- a/src/plugins/scanners/git-evolution.py
+++ b/src/plugins/scanners/git-evolution.py
@@ -85,11 +85,11 @@ def checkout(gpath, date, branch):
ref = subprocess.check_output('cd %s && git rev-list -n 1 --before="%s" "%s"' %
(gpath, date, branch),
shell = True,
- stdout=subprocess.DEVNULL).decode('ascii',
+ stderr=subprocess.STDOUT).decode('ascii',
'replace').strip()
subprocess.check_output('cd %s && git checkout %s -- ' % (gpath, ref),
shell = True,
- stdout=subprocess.DEVNULL)
+ stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as err:
print(err.output)
--
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].