Check all path segments for ignored names

This commit is contained in:
Corey Johnson & Kevin Sawicki
2012-12-12 13:58:15 -08:00
parent af49ab9c6c
commit 77e4e41c7b
2 changed files with 40 additions and 8 deletions

View File

@@ -59,14 +59,8 @@ class Project
deferred.promise()
isPathIgnored: (path) ->
lastSlash = path.lastIndexOf('/')
if lastSlash isnt -1
name = path.substring(lastSlash + 1)
else
name = path
for ignored in @ignoredNames
return true if name is ignored
for segment in path.split("/")
return true if _.contains(@ignoredNames, segment)
@ignoreRepositoryPath(path)