Skip to content

Commit

Permalink
Update dumper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rgeym authored Aug 6, 2023
1 parent 59259f5 commit 53f625d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x_access_dumper/dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import collections
import dataclasses
import io
import math
import re
import typing
from contextlib import asynccontextmanager
Expand Down Expand Up @@ -384,7 +385,7 @@ async def parse_git_file(
logger.debug("%s %s", sha1, filename)
entry_size -= fp.tell()
# Размер entry кратен 8 (добивается NULL-байтами)
fp.seek(entry_size % 8, io.SEEK_CUR)
fp.seek(math.ceil(entry_size / 8) * 8 - entry_size, io.SEEK_CUR)
# Есть еще extensions, но они нигде не используются
n -= 1
for filename in CHECK_GIT_FILES:
Expand Down

0 comments on commit 53f625d

Please sign in to comment.