git lib: suppress messages from shortlog
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 4 Apr 2013 15:55:35 +0000 (17:55 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Thu, 4 Apr 2013 16:21:19 +0000 (18:21 +0200)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
lib/git.py

index 1a20ea0f14ccca6e3b4ac2ddf3326c6cd744ace6..d61d90a8cbc1f0f9418431cd4365d6069236efd5 100644 (file)
@@ -109,7 +109,7 @@ def remote_update(gitdir):
 
 def shortlog(from_commit, to_commit, tree=None):
     process = subprocess.Popen(['git', 'shortlog', from_commit + '..' + to_commit],
-                               stdout=subprocess.PIPE,
+                               stdout=subprocess.PIPE, stderr=subprocess.PIPE,
                                close_fds=True, universal_newlines=True,
                                cwd=tree)
     stdout = process.communicate()[0]