mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Strip any leading /private/.
I don’t love that we have to do this manually, but I also can’t find any node function that’ll do it for us :(
This commit is contained in:
@@ -182,6 +182,11 @@ export default class GitRepositoryAsync {
|
||||
return _path
|
||||
}
|
||||
|
||||
// Depending on where the paths come from, they may have a '/private/'
|
||||
// prefix. Standardize by stripping that out.
|
||||
_path = _path.replace(/^\/private\//, '/')
|
||||
workingDirectory = workingDirectory.replace(/^\/private\//, '/')
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
_path = _path.replace(/\\/g, '/')
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user