Explorar el Código

Only try and load .pack files

John Carr hace 16 años
padre
commit
3c638e6a2e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      dulwich/pack.py

+ 2 - 1
dulwich/pack.py

@@ -738,4 +738,5 @@ class Pack(object):
 
 def load_packs(path):
     for name in os.listdir(path):
-        yield Pack(os.path.join(path, name.rstrip(".pack")))
+        if name.endswith(".pack"):
+            yield Pack(os.path.join(path, name.rstrip(".pack")))