     working_dir_typechange: 1 << 10
     ignore: 1 << 14
 
-  statuses: {}
+  statuses: null
 
   constructor: (path, options={}) ->
+    @statuses = {}
     @repo = GitRepository.open(path)
     refreshOnWindowFocus = options.refreshOnWindowFocus ? true
     if refreshOnWindowFocus

module.exports =
class Git
  @open: (path, options) ->
    try
      new Git(path, options)
    catch e

    @getRepo().isSubmodule(@relativize(path))

  refreshStatus: ->
    @statusTask = new RepositoryStatusTask(this)
    @statusTask.start()

_.extend Git.prototype, Subscriber
_.extend Git.prototype, EventEmitter
