mirror of
https://github.com/desktop/desktop
synced 2024-09-18 07:32:01 +00:00
Merge pull request #18206 from desktop/fix-ignore-folders-on-windows
Use forward slash for path separation splicing in generating ignore folder paths
This commit is contained in:
commit
5c494415c8
|
@ -571,7 +571,9 @@ export class ChangesList extends React.Component<
|
|||
enabled,
|
||||
})
|
||||
|
||||
const pathComponents = path.split(Path.sep).slice(0, -1)
|
||||
// Even on Windows, the path separator is '/' for git operations so cannot
|
||||
// use Path.sep
|
||||
const pathComponents = path.split('/').slice(0, -1)
|
||||
if (pathComponents.length > 0) {
|
||||
const submenu = pathComponents.map((_, index) => {
|
||||
const label = `/${pathComponents
|
||||
|
|
Loading…
Reference in a new issue