Skip to content

Commit 2196d27

Browse files
committed
Decoding git command output with non-utf8 data should be handled nicely
NO_JIRA
1 parent 6d753d3 commit 2196d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/githooks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959

6060
def _get_output(command, cwd='.'):
61-
return subprocess.check_output(command, shell=True, cwd=cwd).decode()
61+
return subprocess.check_output(command, shell=True, cwd=cwd).decode(errors='replace')
6262

6363

6464
def _is_github_event():

0 commit comments

Comments
 (0)