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)
388
388
if ( ! change . IsConflicted )
389
389
continue ;
390
390
391
- if ( change . WorkTree == Models . ChangeState . Deleted )
391
+ if ( change . ConflictReason == Models . ConflictReason . BothDeleted ||
392
+ change . ConflictReason == Models . ConflictReason . DeletedByThem )
392
393
{
393
394
var fullpath = Path . Combine ( _repo . FullPath , change . Path ) ;
394
395
if ( File . Exists ( fullpath ) )
@@ -430,7 +431,8 @@ public async void UseMine(List<Models.Change> changes)
430
431
if ( ! change . IsConflicted )
431
432
continue ;
432
433
433
- if ( change . Index == Models . ChangeState . Deleted )
434
+ if ( change . ConflictReason == Models . ConflictReason . BothDeleted ||
435
+ change . ConflictReason == Models . ConflictReason . DeletedByUs )
434
436
{
435
437
var fullpath = Path . Combine ( _repo . FullPath , change . Path ) ;
436
438
if ( File . Exists ( fullpath ) )
You can’t perform that action at this time.
0 commit comments