Skip to content

Commit

Permalink
Merge pull request #1062 from asfaltboy/bugfix/dont-ansi-decode-binary
Browse files Browse the repository at this point in the history
Fix: don't ansi-decode a binary string
  • Loading branch information
randy3k committed Nov 26, 2018
2 parents 57b00b1 + 6562f92 commit a37d9b3
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 @@ -269,7 +269,7 @@ def initialize_panel():
raise GitSavvyError(
"`{}` failed.".format(command_str), show_panel=show_panel_on_stderr)

if stdout:
if stdout and decode:
stdout = ANSI_ESCAPE.sub('', stdout)

return stdout
Expand Down

0 comments on commit a37d9b3

Please sign in to comment.