Commit Diff
--- swh/loader/git/loader.py +++ swh/loader/git/loader.py @@ -792,6 +792,8 @@ class GitLoader(BaseGitLoader): commits[commit_hash] = tree_hash for parent_hex in commit.parents: if parent_hex in parents: + continue + if parent_hex not in self.pack: continue parent_hash = hashutil.bytehex_to_hash(parent_hex) if parent_hash in commits.keys():