From be964abf9ff96f62bbb0d0543e2f71cc5d4a62e5 Mon Sep 17 00:00:00 2001 From: joshaber Date: Thu, 10 Dec 2015 16:31:46 -0500 Subject: [PATCH] Ensure we actually do give them a boolean. --- src/git-repository-async.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/git-repository-async.js b/src/git-repository-async.js index dcb677bd4..dea3baec0 100644 --- a/src/git-repository-async.js +++ b/src/git-repository-async.js @@ -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.