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 @@ -599,7 +599,8 @@ public ContextMenu CreateContextMenuForUnstagedChanges()
599
599
byParentFolder . IsVisible = ! isRooted ;
600
600
byParentFolder . Click += ( _ , e ) =>
601
601
{
602
- Commands . GitIgnore . Add ( _repo . FullPath , Path . GetDirectoryName ( change . Path ) + "/" ) ;
602
+ var path = Path . GetDirectoryName ( change . Path ) . Replace ( "\\ " , "/" ) ;
603
+ Commands . GitIgnore . Add ( _repo . FullPath , path + "/" ) ;
603
604
e . Handled = true ;
604
605
} ;
605
606
addToIgnore . Items . Add ( byParentFolder ) ;
@@ -620,7 +621,8 @@ public ContextMenu CreateContextMenuForUnstagedChanges()
620
621
byExtensionInSameFolder . IsVisible = ! isRooted ;
621
622
byExtensionInSameFolder . Click += ( _ , e ) =>
622
623
{
623
- Commands . GitIgnore . Add ( _repo . FullPath , Path . GetDirectoryName ( change . Path ) + "/*" + extension ) ;
624
+ var path = Path . GetDirectoryName ( change . Path ) . Replace ( "\\ " , "/" ) ;
625
+ Commands . GitIgnore . Add ( _repo . FullPath , path + "/*" + extension ) ;
624
626
e . Handled = true ;
625
627
} ;
626
628
addToIgnore . Items . Add ( byExtensionInSameFolder ) ;
You can’t perform that action at this time.
0 commit comments