mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
lint-history: do decode bytes
This fixes the "TypeError: a bytes-like object is required, not 'str'" problem on Windows, letting t9391 pass. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
e0a3df8c62
commit
fbaab1704c
@ -114,7 +114,7 @@ def lint_with_real_filenames(commit, metadata):
|
|||||||
f.write(contents_plus_newline[:-1])
|
f.write(contents_plus_newline[:-1])
|
||||||
|
|
||||||
# Lint the file
|
# Lint the file
|
||||||
subprocess.check_call(lint_args.command + [filename])
|
subprocess.check_call(lint_args.command + [filename.decode('utf-8')])
|
||||||
|
|
||||||
# Get the new contents
|
# Get the new contents
|
||||||
with open(filename, "rb") as f:
|
with open(filename, "rb") as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user