commit 173584f7d60d70302a21e6bd18f34530db2d80a7 from: Jelmer Vernooij via: GitHub date: Wed Apr 05 19:21:12 2023 UTC Merge pull request #1165 from jelmer/handle-missing Handle missing object in iterobjects_subset commit - 3fdec683ac6626aac79b13bdfa09114d21917eac commit + 173584f7d60d70302a21e6bd18f34530db2d80a7 blob - 58192fae475ba1c8c1ede617d58328a5ec56e778 blob + 870fe8cfc661a4cff5773c09ace9e502c0004699 --- dulwich/pack.py +++ 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()