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

EventEmitter = require 'event-emitter'
Directory = require 'directory'
ChildProcess = require 'child-process'

module.exports =
class Project

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

    return false

