Skip to content

Commit

Permalink
Merge ea98d36 into 311593c
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Oct 1, 2018
2 parents 311593c + ea98d36 commit 6d355b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/git_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
GIT_REQUIRE_PATCH = 0


ANSI_ESCAPE = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')


class LoggingProcessWrapper(object):

"""
Expand Down Expand Up @@ -262,6 +265,9 @@ def initialize_panel():
raise GitSavvyError(
"`{}` failed.".format(command_str), show_panel=show_panel_on_stderr)

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

return stdout

def decode_stdout(self, stdout):
Expand Down

0 comments on commit 6d355b1

Please sign in to comment.