use full paths in meta-t

This commit is contained in:
Chris Wanstrath
2013-03-14 17:40:41 -07:00
parent d120804520
commit 74c1e64bdb

View File

@@ -9,14 +9,13 @@ module.exports =
paths = []
isIgnored = (path) ->
path = path.substring(rootPath.length + 1)
for segment in path.split('/')
return true if _.contains(ignoredNames, segment)
repo?.isPathIgnored(fs.join(rootPath, path))
onFile = (path) ->
path = path.substring(rootPath.length + 1)
paths.push(path) unless isIgnored(path)
onDirectory = (path) ->
path = path.substring(rootPath.length + 1)
not isIgnored(path)
fs.traverseTree(rootPath, onFile, onDirectory)