Skip to content

Commit

Permalink
commits bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jstzwj committed Sep 4, 2024
1 parent c4be6b2 commit 8c2dd3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions olah/mirror/repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 8c2dd3f

Please sign in to comment.