       return true if name is ignored
     for regex in @ignoredPathRegexes
       return true if path.match(regex)
+    return true if @repo.isPathIgnored(path)
 
     return false
 

    if path?
      directory = if fs.isDirectory(path) then path else fs.directory(path)
      @rootDirectory = new Directory(directory)
    else
      @rootDirectory = null


      '.DS_Store'
    ]
    @ignoredPathRegexes = []
    @repo = new Git(path)

  destroy: ->
    editSession.destroy() for editSession in @getEditSessions()
