Ver Fonte

Merge fix for opening pack files.

Jelmer Vernooij há 16 anos atrás
pai
commit
82c73b8c32
1 ficheiros alterados com 2 adições e 1 exclusões
  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")))