diff --git a/olah/mirror/repos.py b/olah/mirror/repos.py index 3bba7c6..5ada704 100644 --- a/olah/mirror/repos.py +++ b/olah/mirror/repos.py @@ -243,8 +243,7 @@ def get_commits(self, commit_hash: str) -> Optional[Dict[str, Any]]: except gitdb.exc.BadName: return None - parent_commits: List[Commit] = list(commit.parents) - parent_commits = parent_commits.insert(0, commit) + parent_commits = [commit] + [each_commit for each_commit in commit.iter_parents()] items = [] for each_commit in parent_commits: item = {