fix: IsConflictResolved check should not be done for submodules (#1356)
Some checks are pending
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions

A submodule conflict is not resolved until it's Staged.
This commit is contained in:
Göran W 2025-05-24 03:40:17 +02:00 committed by GitHub
parent e28b75b860
commit f3fe90b2e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,6 @@
namespace SourceGit.ViewModels
using System;
namespace SourceGit.ViewModels
{
public class ConflictSourceBranch
{
@ -46,7 +48,9 @@
_wc = wc;
_change = change;
IsResolved = new Commands.IsConflictResolved(repo.FullPath, change).Result();
var isSubmodule = repo.Submodules.Find(x => x.Path.Equals(change.Path, StringComparison.Ordinal)) != null;
IsResolved = !isSubmodule && new Commands.IsConflictResolved(repo.FullPath, change).Result();
var context = wc.InProgressContext;
if (context is CherryPickInProgress cherryPick)