From f47846c40870087aae5c4ca2be33f4312e3bf6fd Mon Sep 17 00:00:00 2001 From: "Samuel E. Giddins" Date: Fri, 5 Jun 2015 11:59:32 -0700 Subject: [PATCH] Don't ignore the root path --- lib/load-paths-handler.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/load-paths-handler.coffee b/lib/load-paths-handler.coffee index 0b9a58d3..60ac84c9 100644 --- a/lib/load-paths-handler.coffee +++ b/lib/load-paths-handler.coffee @@ -24,7 +24,9 @@ class PathLoader isIgnored: (loadedPath) -> relativePath = path.relative(@rootPath, loadedPath) - if @repo?.isPathIgnored(loadedPath) + if relativePath is '' + false + else if @repo?.isPathIgnored(loadedPath) true else for ignoredName in @ignoredNames