Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb82455

Browse files
author
Cory Johns
committed
[#6078]#102 Work-around mergetag blocks by ignoring them
1 parent007bd4b commitdb82455

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎git/objects/commit.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
whilenext_line.startswith('mergetag '):
432+
next_line=readline()
433+
whilenext_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
ifenc:
436443
self.encoding=enc[enc.find(' ')+1:]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp