@@ -446,7 +446,7 @@ public void ContinueMerge()
446446 Task . Run ( ( ) =>
447447 {
448448 var mergeMsgFile = Path . Combine ( _repo . GitDir , "MERGE_MSG" ) ;
449- if ( File . Exists ( mergeMsgFile ) )
449+ if ( File . Exists ( mergeMsgFile ) && ! string . IsNullOrWhiteSpace ( _commitMessage ) )
450450 File . WriteAllText ( mergeMsgFile , _commitMessage ) ;
451451
452452 var succ = _inProgressContext . Continue ( ) ;
@@ -729,8 +729,8 @@ public ContextMenu CreateContextMenuForUnstagedChanges()
729729 byParentFolder . IsVisible = ! isRooted ;
730730 byParentFolder . Click += ( _ , e ) =>
731731 {
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 + "/" ) ;
734734 e . Handled = true ;
735735 } ;
736736 addToIgnore . Items . Add ( byParentFolder ) ;
@@ -751,8 +751,8 @@ public ContextMenu CreateContextMenuForUnstagedChanges()
751751 byExtensionInSameFolder . IsVisible = ! isRooted ;
752752 byExtensionInSameFolder . Click += ( _ , e ) =>
753753 {
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 ) ;
756756 e . Handled = true ;
757757 } ;
758758 addToIgnore . Items . Add ( byExtensionInSameFolder ) ;
0 commit comments