Skip to content

Commit ed36bd9

Browse files
committed
Specify encoding in Commit.trailer_list.
1 parent abde3ea commit ed36bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/objects/commit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def trailers_list(self) -> List[Tuple[str, str]]:
372372
"""
373373
cmd = ["git", "interpret-trailers", "--parse"]
374374
proc: Git.AutoInterrupt = self.repo.git.execute(cmd, as_process=True, istream=PIPE) # type: ignore
375-
trailer: str = proc.communicate(str(self.message).encode())[0].decode()
375+
trailer: str = proc.communicate(str(self.message).encode())[0].decode("utf8")
376376
trailer = trailer.strip()
377377

378378
if not trailer:

0 commit comments

Comments
 (0)