瀏覽代碼

Merge pull request #1165 from jelmer/handle-missing

Handle missing object in iterobjects_subset
Jelmer Vernooij 2 年之前
父節點
當前提交
173584f7d6
共有 1 個文件被更改,包括 2 次插入1 次删除
  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()