Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 088c0e7

Browse files
committed
Don't ignore the root path
1 parent dcdad6a commit 088c0e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/load-paths-handler.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class PathLoader
2626

2727
isIgnored: (loadedPath) ->
2828
relativePath = path.relative(@rootPath, loadedPath)
29-
if @repo?.isPathIgnored(loadedPath)
29+
if relativePath is ''
30+
false
31+
else if @repo?.isPathIgnored(loadedPath)
3032
true
3133
else
3234
for ignoredName in @ignoredNames

0 commit comments

Comments
 (0)