@@ -446,7 +446,7 @@ public void ContinueMerge()
446
446
Task . Run ( ( ) =>
447
447
{
448
448
var mergeMsgFile = Path . Combine ( _repo . GitDir , "MERGE_MSG" ) ;
449
- if ( File . Exists ( mergeMsgFile ) )
449
+ if ( File . Exists ( mergeMsgFile ) && ! string . IsNullOrWhiteSpace ( _commitMessage ) )
450
450
File . WriteAllText ( mergeMsgFile , _commitMessage ) ;
451
451
452
452
var succ = _inProgressContext . Continue ( ) ;
@@ -729,8 +729,8 @@ public ContextMenu CreateContextMenuForUnstagedChanges()
729
729
byParentFolder . IsVisible = ! isRooted ;
730
730
byParentFolder . Click += ( _ , e ) =>
731
731
{
732
- var path = Path . GetDirectoryName ( change . Path ) . Replace ( "\\ " , "/" ) ;
733
- Commands . GitIgnore . Add ( _repo . FullPath , path + "/" ) ;
732
+ var dir = Path . GetDirectoryName ( change . Path ) . Replace ( "\\ " , "/" ) ;
733
+ Commands . GitIgnore . Add ( _repo . FullPath , dir + "/" ) ;
734
734
e . Handled = true ;
735
735
} ;
736
736
addToIgnore . Items . Add ( byParentFolder ) ;
@@ -751,8 +751,8 @@ public ContextMenu CreateContextMenuForUnstagedChanges()
751
751
byExtensionInSameFolder . IsVisible = ! isRooted ;
752
752
byExtensionInSameFolder . Click += ( _ , e ) =>
753
753
{
754
- var path = Path . GetDirectoryName ( change . Path ) . Replace ( "\\ " , "/" ) ;
755
- Commands . GitIgnore . Add ( _repo . FullPath , path + "/*" + extension ) ;
754
+ var dir = Path . GetDirectoryName ( change . Path ) . Replace ( "\\ " , "/" ) ;
755
+ Commands . GitIgnore . Add ( _repo . FullPath , dir + "/*" + extension ) ;
756
756
e . Handled = true ;
757
757
} ;
758
758
addToIgnore . Items . Add ( byExtensionInSameFolder ) ;
0 commit comments