Skip to content

Commit

Permalink
Fix: forward stderr to stdout
Browse files Browse the repository at this point in the history
git --version prints to stderr on windows
  • Loading branch information
randy3k committed May 30, 2018
1 parent e7de3ff commit e28dcb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/git_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def git_binary_path(self):
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW

stdout = subprocess.check_output(
[git_path, "--version"], startupinfo=startupinfo).decode("utf-8")
[git_path, "--version"], stderr=subprocess.STDOUT, startupinfo=startupinfo).decode("utf-8")
except Exception:
stdout = ""
git_path = None
Expand Down

0 comments on commit e28dcb5

Please sign in to comment.