@@ -437,8 +437,10 @@ public static bool ResolveConflict(FileState fileState, bool refresh)
437
437
}
438
438
439
439
// save local temp files
440
+ Debug . pauseGitCommanderStdWrites = true ;
440
441
if ( ! Repository . SaveConflictedFile ( fileState . filename , FileConflictSources . Ours , out fullPathOurs ) ) throw new Exception ( Repository . lastError ) ;
441
442
if ( ! Repository . SaveConflictedFile ( fileState . filename , FileConflictSources . Theirs , out fullPathTheirs ) ) throw new Exception ( Repository . lastError ) ;
443
+ Debug . pauseGitCommanderStdWrites = false ;
442
444
fullPathOurs = Repository . repoPath + Path . DirectorySeparatorChar + fullPathOurs ;
443
445
fullPathTheirs = Repository . repoPath + Path . DirectorySeparatorChar + fullPathTheirs ;
444
446
@@ -598,6 +600,7 @@ public static bool ResolveConflict(FileState fileState, bool refresh)
598
600
}
599
601
catch ( Exception e )
600
602
{
603
+ Debug . pauseGitCommanderStdWrites = false ;
601
604
Debug . LogError ( "Failed to resolve file: " + e . Message , true ) ;
602
605
DeleteTempMergeFiles ( ) ;
603
606
return false ;
@@ -629,7 +632,9 @@ public static bool OpenDiffTool(FileState fileState)
629
632
}
630
633
631
634
// get info and save orig file
635
+ Debug . pauseGitCommanderStdWrites = true ;
632
636
if ( ! Repository . SaveOriginalFile ( fileState . filename , out fullPathOrig ) ) throw new Exception ( Repository . lastError ) ;
637
+ Debug . pauseGitCommanderStdWrites = false ;
633
638
fullPathOrig = Repository . repoPath + Path . DirectorySeparatorChar + fullPathOrig ;
634
639
635
640
// open diff tool
@@ -650,6 +655,7 @@ public static bool OpenDiffTool(FileState fileState)
650
655
}
651
656
catch ( Exception ex )
652
657
{
658
+ Debug . pauseGitCommanderStdWrites = false ;
653
659
Debug . LogError ( "Failed to start Diff tool: " + ex . Message , true ) ;
654
660
DeleteTempDiffFiles ( ) ;
655
661
return false ;
0 commit comments