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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy