mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-06 11:34:59 +00:00
fix: IsConflictResolved check should not be done for submodules (#1356)
A submodule conflict is not resolved until it's Staged.
This commit is contained in:
parent
e28b75b860
commit
f3fe90b2e1
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
namespace SourceGit.ViewModels
|
using System;
|
||||||
|
|
||||||
|
namespace SourceGit.ViewModels
|
||||||
{
|
{
|
||||||
public class ConflictSourceBranch
|
public class ConflictSourceBranch
|
||||||
{
|
{
|
||||||
|
@ -46,7 +48,9 @@
|
||||||
_wc = wc;
|
_wc = wc;
|
||||||
_change = change;
|
_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;
|
var context = wc.InProgressContext;
|
||||||
if (context is CherryPickInProgress cherryPick)
|
if (context is CherryPickInProgress cherryPick)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue