Skip to content

Commit 583875d

Browse files
committed
Don't capture stderr when running git commands
The output of these commands is sometimes parsed, and output from stderr can interfere with that parsing.
1 parent aab3bf5 commit 583875d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rosdistro/vcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def ref_is_hash(ref):
6767
def _run_command(cmd, cwd=None, env=None):
6868
result = {'cmd': ' '.join(cmd), 'cwd': cwd}
6969
try:
70-
proc = subprocess.Popen(cmd, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env)
70+
proc = subprocess.Popen(cmd, cwd=cwd, stdout=subprocess.PIPE, env=env)
7171
output, _ = proc.communicate()
7272
result['output'] = output.rstrip()
7373
result['returncode'] = proc.returncode

0 commit comments

Comments
 (0)