From f5589e7ac751ee61a6b16597d2046cea4ae9566b Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Thu, 30 Mar 2023 01:38:55 +0200 Subject: [PATCH] Fix str vs bytes TypeError --- src/label_doconly_changes/base_hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/label_doconly_changes/base_hooks.py b/src/label_doconly_changes/base_hooks.py index 4b61639..564d6c9 100644 --- a/src/label_doconly_changes/base_hooks.py +++ b/src/label_doconly_changes/base_hooks.py @@ -57,7 +57,7 @@ def _get_file_from_ref(*, ref: str, filename: str) -> str | None: ).decode("utf-8") except subprocess.CalledProcessError as e: prefixes = tuple( - f"fatal: path '{filename}' {error_msg} '" + f"fatal: path '{filename}' {error_msg} '".encode() for error_msg in ( "exists on disk, but not in", "exists, but not",