Fix isProjectAtRoot

This commit is contained in:
Max Brunsfeld
2017-09-27 10:18:12 -07:00
parent 99f3ada86b
commit c54e0782da

View File

@@ -205,7 +205,7 @@ class GitRepository {
// repository.
isProjectAtRoot () {
if (this.projectAtRoot == null) {
this.projectAtRoot = this.project && this.project.relativize(this.getWorkingDirectory())
this.projectAtRoot = this.project && this.project.relativize(this.getWorkingDirectory()) === ''
}
return this.projectAtRoot
}