We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6e3ad2 commit b5d9198Copy full SHA for b5d9198
git/objects/base.py
@@ -30,9 +30,6 @@
30
31
# --------------------------------------------------------------------------
32
33
-
34
-# _assertion_msg_format = "Created object %r whose python type %r disagrees with the actual git object type %r"
35
36
__all__ = ("Object", "IndexObject")
37
38
@@ -154,8 +151,7 @@ def _set_cache_(self, attr: str) -> None:
154
151
"""Retrieve object information."""
155
152
if attr == "size":
156
153
oinfo = self.repo.odb.info(self.binsha)
157
- self.size = oinfo.size # type: int
158
- # assert oinfo.type == self.type, _assertion_msg_format % (self.binsha, oinfo.type, self.type)
+ self.size = oinfo.size # type: int
159
else:
160
super()._set_cache_(attr)
161
0 commit comments