From a244bd15bcd05c08d524ca9ef307e479e511b54c Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 20 Feb 2020 07:43:19 -0600 Subject: Replace invalid bytes when decoding TagObject stream Fixes #943 --- git/objects/tag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git') diff --git a/git/objects/tag.py b/git/objects/tag.py index 017c4988..b9bc6c24 100644 --- a/git/objects/tag.py +++ b/git/objects/tag.py @@ -50,7 +50,7 @@ class TagObject(base.Object): """Cache all our attributes at once""" if attr in TagObject.__slots__: ostream = self.repo.odb.stream(self.binsha) - lines = ostream.read().decode(defenc).splitlines() + lines = ostream.read().decode(defenc, 'replace').splitlines() _obj, hexsha = lines[0].split(" ") _type_token, type_name = lines[1].split(" ") -- cgit v1.2.1