Skip to content

Commit f0ef7af

Browse files
committed
Add test case as example of Git commit with invalid data
This is a real commit from the microjs.com open source project, see microjs/microjs.com@7e8457c, which is declared to be encoded in UTF-8, but contains invalid bytes. This makes GitPython choke on it while decoding. Rather than choking, this should instead accept the error and replace the invalid bytes by the � (\x80) char.
1 parent e836e5c commit f0ef7af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

git/test/fixtures/commit_invalid_data

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
tree 9f1a495d7d9692d24f5caedaa89f5c2c32d59368
2+
parent 492ace2ffce0e426ebeb55e364e987bcf024dd3b
3+
author E.Azer Ko�o�o�oculu <[email protected]> 1306710073 +0300
4+
committer E.Azer Ko�o�o�oculu <[email protected]> 1306710073 +0300
5+
6+
add environjs

0 commit comments

Comments
 (0)