mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
fix: using theirs or mine does not work if it is deleted by ours or theirs
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -388,7 +388,8 @@ namespace SourceGit.ViewModels
|
||||
if (!change.IsConflicted)
|
||||
continue;
|
||||
|
||||
if (change.WorkTree == Models.ChangeState.Deleted)
|
||||
if (change.ConflictReason == Models.ConflictReason.BothDeleted ||
|
||||
change.ConflictReason == Models.ConflictReason.DeletedByThem)
|
||||
{
|
||||
var fullpath = Path.Combine(_repo.FullPath, change.Path);
|
||||
if (File.Exists(fullpath))
|
||||
@@ -430,7 +431,8 @@ namespace SourceGit.ViewModels
|
||||
if (!change.IsConflicted)
|
||||
continue;
|
||||
|
||||
if (change.Index == Models.ChangeState.Deleted)
|
||||
if (change.ConflictReason == Models.ConflictReason.BothDeleted ||
|
||||
change.ConflictReason == Models.ConflictReason.DeletedByUs)
|
||||
{
|
||||
var fullpath = Path.Combine(_repo.FullPath, change.Path);
|
||||
if (File.Exists(fullpath))
|
||||
|
||||
Reference in New Issue
Block a user