diff --git a/src/git-repository-async.js b/src/git-repository-async.js index a0e85a01d..725b7b441 100644 --- a/src/git-repository-async.js +++ b/src/git-repository-async.js @@ -165,7 +165,7 @@ export default class GitRepositoryAsync { const workingDirectory = repo.workdir() let openedWorkingDirectory = null const opened = this.openedPath.replace(/\/\.git$/, '') - if (path.relative(opened, workingDirectory) != '') { + if (path.relative(opened, workingDirectory) !== '') { openedWorkingDirectory = opened } return this.relativize(_path, workingDirectory, openedWorkingDirectory)