Parcourir la source

Handle missing object

Jelmer Vernooij il y a 2 ans
Parent
commit
6172f1c88f
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      dulwich/pack.py

+ 2 - 1
dulwich/pack.py

@@ -1387,7 +1387,8 @@ class DeltaChainIterator(Generic[T]):
             except KeyError:
                 if not allow_missing:
                     raise
-            todo.add(off)
+            else:
+                todo.add(off)
         done = set()
         while todo:
             off = todo.pop()