mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Preserve case as long as we can.
This commit is contained in:
@@ -202,6 +202,7 @@ export default class GitRepositoryAsync {
|
||||
|
||||
workingDirectory = workingDirectory.replace(/\/$/, '')
|
||||
|
||||
const originalPath = _path
|
||||
if (this.isCaseInsensitive) {
|
||||
_path = _path.toLowerCase()
|
||||
workingDirectory = workingDirectory.toLowerCase()
|
||||
@@ -212,7 +213,6 @@ export default class GitRepositoryAsync {
|
||||
_path = _path.replace(/^\/private\//, '/')
|
||||
workingDirectory = workingDirectory.replace(/^\/private\//, '/')
|
||||
|
||||
const originalPath = _path
|
||||
if (_path.indexOf(workingDirectory) === 0) {
|
||||
return originalPath.substring(workingDirectory.length + 1)
|
||||
} else if (_path === workingDirectory) {
|
||||
|
||||
Reference in New Issue
Block a user