From c9287300e60783fe1e0235137b5ffab70c167eda Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 3 May 2024 13:28:36 -0500 Subject: [PATCH] Don't capture stderr when running git commands (#179) The output of these commands is sometimes parsed, and output from stderr can interfere with that parsing. --- src/rosdistro/vcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rosdistro/vcs.py b/src/rosdistro/vcs.py index c959409b..76448a1e 100644 --- a/src/rosdistro/vcs.py +++ b/src/rosdistro/vcs.py @@ -67,7 +67,7 @@ def ref_is_hash(ref): def _run_command(cmd, cwd=None, env=None): result = {'cmd': ' '.join(cmd), 'cwd': cwd} try: - proc = subprocess.Popen(cmd, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env) + proc = subprocess.Popen(cmd, cwd=cwd, stdout=subprocess.PIPE, env=env) output, _ = proc.communicate() result['output'] = output.rstrip() result['returncode'] = proc.returncode