Preserve case as long as we can.

This commit is contained in:
joshaber
2016-02-22 11:19:54 -05:00
parent 04cab58c56
commit cfa7f99b01

View File

@@ -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) {