Ensure we actually do give them a boolean.

This commit is contained in:
joshaber
2015-12-10 16:31:46 -05:00
parent 47606507f7
commit be964abf9f

View File

@@ -382,7 +382,9 @@ export default class GitRepositoryAsync {
// Returns a {Promise} which resolves to a {Boolean} that's true if the `path`
// is ignored.
isPathIgnored (_path) {
return this.repoPromise.then(repo => Git.Ignore.pathIsIgnored(repo, _path))
return this.repoPromise
.then(repo => Git.Ignore.pathIsIgnored(repo, _path))
.then(ignored => Boolean(ignored))
}
// Get the status of a directory in the repository's working directory.