@@ -985,22 +985,21 @@ class InfoTD(TypedDict, total=False):
985
985
commits [sha ] = c
986
986
blames [- 1 ][0 ] = c
987
987
# END if commit objects needs initial creation
988
- if not is_binary :
989
- if line_str and line_str [0 ] == '\t ' :
990
- line_str = line_str [1 :]
991
- else :
992
- pass
993
- # NOTE: We are actually parsing lines out of binary data, which can lead to the
994
- # binary being split up along the newline separator. We will append this to the
995
- # blame we are currently looking at, even though it should be concatenated with
996
- # the last line we have seen.
997
988
998
989
if blames [- 1 ][1 ] is not None :
999
- blames [- 1 ][1 ].append (line_str )
990
+ if not is_binary :
991
+ if line_str and line_str [0 ] == '\t ' :
992
+ line_str = line_str [1 :]
993
+ blames [- 1 ][1 ].append (line_str )
994
+ else :
995
+ blames [- 1 ][1 ].append (line_bytes )
996
+ # NOTE: We are actually parsing lines out of binary data, which can lead to the
997
+ # binary being split up along the newline separator. We will append this to the
998
+ # blame we are currently looking at, even though it should be concatenated with
999
+ # the last line we have seen.
1000
1000
info = {'id' : sha }
1001
1001
# end handle line contents
1002
1002
1003
- info = {'id' : sha }
1004
1003
# END if we collected commit info
1005
1004
# END distinguish filename,summary,rest
1006
1005
# END distinguish author|committer vs filename,summary,rest
0 commit comments