     proc = @process({
       command: GitCmd,
       args: ['status', '--porcelain'],
-      options: { cwd: @_repoWorkDir() },
+      options: { cwd: repo.getWorkingDirectory() },
       stdout: stdoutHandler,
       stderr: stderrHandler,
       exit: exitHandler


    return true

  @withConflicts: (handler) ->
    return unless @_checkHealth(handler)

    conflicts = []

      repo = atom.project.getRepositories()[0]
    return repo

  @_repoWorkDir: (filepath) -> @getActiveRepo(filepath).getWorkingDirectory()

  @_repoGitDir: (filepath) -> @getActiveRepo(filepath).getPath()
