   stagedFiles: (repo, stdout) ->
     # args = ['diff-index', '--cached', 'HEAD', '--name-status', '-z']
     args = ['diff-index', '--cached', 'HEAD', '--name-status']
-    @cmd(args, cwd: repo.getWorkingDirectory())
+    git.cmd(args, cwd: repo.getWorkingDirectory())
     .then (data) ->
       _prettify data
     .catch (error) ->

  # returns filepath relativized for either a submodule or repository
  #   otherwise just a full path
  relativize: (path) ->
    @getSubmodule(path)?.relativize(path) ? atom.project.getRepositories()[0]?.relativize(path) ? path

  # Returns the working directory for a git repo.
  # Will search for submodule first if currently


  unstagedFiles: (repo, {showUntracked}={}) ->
    args = ['diff-files', '--name-status', '-z']
    git.cmd(args, cwd: repo.getWorkingDirectory())
    .then (data) ->
      if showUntracked
        gitUntrackedFiles(repo, _prettify(data))
