File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -426,11 +426,18 @@ def _deserialize(self, stream):
426426 self .committer , self .committed_date , self .committer_tz_offset = parse_actor_and_date (readline ())
427427
428428
429+ # we might run into one or more mergetag blocks, skip those for now
430+ next_line = readline ()
431+ while next_line .startswith ('mergetag ' ):
432+ next_line = readline ()
433+ while next_line .startswith (' ' ):
434+ next_line = readline ()
435+
429436 # now we can have the encoding line, or an empty line followed by the optional
430437 # message.
431438 self .encoding = self .default_encoding
432439 # read encoding or empty line to separate message
433- enc = readline ()
440+ enc = next_line
434441 enc = enc .strip ()
435442 if enc :
436443 self .encoding = enc [enc .find (' ' )+ 1 :]
You can’t perform that action at this time.
0 commit comments