From 1e660f3a0241d42283be56b2893cd4ea42981915 Mon Sep 17 00:00:00 2001 From: Brian Botha Date: Fri, 10 May 2024 14:58:02 +1000 Subject: [PATCH] fix: `listObjects` now properly walks all commits [ci skip] --- src/git/utils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/git/utils.ts b/src/git/utils.ts index 0f4644fbca..f89071e65c 100644 --- a/src/git/utils.ts +++ b/src/git/utils.ts @@ -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':