2
0
Эх сурвалжийг харах

Remove duplicate check for sha files.

Jelmer Vernooij 16 жил өмнө
parent
commit
94fb7f2a54

+ 0 - 5
dulwich/object_store.py

@@ -121,11 +121,6 @@ class ObjectStore(object):
         raise KeyError(sha)
         raise KeyError(sha)
 
 
     def __getitem__(self, sha):
     def __getitem__(self, sha):
-        assert len(sha) == 40, "Incorrect length sha: %s" % str(sha)
-        ret = self._get_shafile(sha)
-        if ret is not None:
-            return ret
-        # Check from packs
         type, uncomp = self.get_raw(sha)
         type, uncomp = self.get_raw(sha)
         return ShaFile.from_raw_string(type, uncomp)
         return ShaFile.from_raw_string(type, uncomp)