From 1ae096f215bc50a96efbb4cf8d5ae09814e7e25a Mon Sep 17 00:00:00 2001 From: Ramin Tadayon Date: Thu, 8 Sep 2022 18:54:39 +0900 Subject: [PATCH] Fix commits incorrectly being merge type --- src/env/node/git/localGitProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env/node/git/localGitProvider.ts b/src/env/node/git/localGitProvider.ts index 9f2ac10..edbee78 100644 --- a/src/env/node/git/localGitProvider.ts +++ b/src/env/node/git/localGitProvider.ts @@ -1828,7 +1828,7 @@ export class LocalGitProvider implements GitProvider, Disposable { // TODO: review logic for stash, wip, etc type: isStashCommit ? GitGraphRowType.Stash - : commit.parents.length > 1 + : parents.length > 1 ? GitGraphRowType.MergeCommit : GitGraphRowType.Commit, heads: refHeads,