Skip to content

Commit f5589e7

Browse files
committed
Fix str vs bytes TypeError
1 parent 4db5717 commit f5589e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/label_doconly_changes/base_hooks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _get_file_from_ref(*, ref: str, filename: str) -> str | None:
5757
).decode("utf-8")
5858
except subprocess.CalledProcessError as e:
5959
prefixes = tuple(
60-
f"fatal: path '{filename}' {error_msg} '"
60+
f"fatal: path '{filename}' {error_msg} '".encode()
6161
for error_msg in (
6262
"exists on disk, but not in",
6363
"exists, but not",

0 commit comments

Comments
 (0)