Skip to content

Commit

Permalink
fix: listObjects now properly walks all commits
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
tegefaulkes committed May 10, 2024
1 parent 9b34849 commit 1e660f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/git/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ async function listObjects({
oid: objectId,
});
const tree = readCommitResult.commit.tree;
await walk(tree, 'tree');
const parents = readCommitResult.commit.parent;
await Promise.all([
walk(tree, 'tree'),
...parents.map((parent) => walk(parent, 'commit')),
]);
}
return;
case 'tree':
Expand Down

0 comments on commit 1e660f3

Please sign in to comment.