mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix git issue with file separators
In some cases, GetPath will not return the trailing `/` leading to inability to commit any files in git
This commit is contained in:
parent
276029ee03
commit
f6c507bff9
@ -2246,7 +2246,10 @@ void PROJECT_TREE_PANE::onGitCommit( wxCommandEvent& aEvent )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do not commit files outside the project directory
|
// Do not commit files outside the project directory
|
||||||
if( !fn.GetPath().StartsWith( Prj().GetProjectPath() ) )
|
wxString projectPath = Prj().GetProjectPath();
|
||||||
|
wxString fileName = fn.GetFullPath();
|
||||||
|
|
||||||
|
if( !fileName.StartsWith( projectPath ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Skip lock files
|
// Skip lock files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user