File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,8 @@ public async void UseTheirs(List<Models.Change> changes)
388388 if ( ! change . IsConflicted )
389389 continue ;
390390
391- if ( change . WorkTree == Models . ChangeState . Deleted )
391+ if ( change . ConflictReason == Models . ConflictReason . BothDeleted ||
392+ change . ConflictReason == Models . ConflictReason . DeletedByThem )
392393 {
393394 var fullpath = Path . Combine ( _repo . FullPath , change . Path ) ;
394395 if ( File . Exists ( fullpath ) )
@@ -430,7 +431,8 @@ public async void UseMine(List<Models.Change> changes)
430431 if ( ! change . IsConflicted )
431432 continue ;
432433
433- if ( change . Index == Models . ChangeState . Deleted )
434+ if ( change . ConflictReason == Models . ConflictReason . BothDeleted ||
435+ change . ConflictReason == Models . ConflictReason . DeletedByUs )
434436 {
435437 var fullpath = Path . Combine ( _repo . FullPath , change . Path ) ;
436438 if ( File . Exists ( fullpath ) )
You can’t perform that action at this time.
0 commit comments