◐ Shell
reader mode source ↗
Skip to content
Merged
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
3 changes: 0 additions & 3 deletions gitdb/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ def close(self):
def _set_cache_(self, attr):
if attr == "_packfile_checksum":
self._packfile_checksum = self._cursor.map()[-40:-20]
elif attr == "_packfile_checksum":
self._packfile_checksum = self._cursor.map()[-20:]
elif attr == "_cursor":
# Note: We don't lock the file when reading as we cannot be sure
# that we can actually write to the location - it could be a read-only
Expand Down Expand Up @@ -848,7 +846,6 @@ def is_valid_stream(self, sha, use_crc=False):
assert shawriter.sha(as_hex=False) == sha
return shawriter.sha(as_hex=False) == sha
# END handle crc/sha verification
return True

def info_iter(self):
"""
Expand Down
Toggle all file notes Toggle all file annotations