@@ -985,22 +985,21 @@ class InfoTD(TypedDict, total=False):
985985 commits [sha ] = c
986986 blames [- 1 ][0 ] = c
987987 # 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.
997988
998989 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.
10001000 info = {'id' : sha }
10011001 # end handle line contents
10021002
1003- info = {'id' : sha }
10041003 # END if we collected commit info
10051004 # END distinguish filename,summary,rest
10061005 # END distinguish author|committer vs filename,summary,rest
0 commit comments