diff --git a/src/app/repository-status-handler.coffee b/src/app/repository-status-handler.coffee index 5503396ce..d35a47055 100644 --- a/src/app/repository-status-handler.coffee +++ b/src/app/repository-status-handler.coffee @@ -1,4 +1,4 @@ -Git = require 'git' +Git = nodeRequire 'git-utils' fs = require 'fs' module.exports = @@ -7,10 +7,9 @@ module.exports = if repo? workingDirectoryPath = repo.getWorkingDirectory() statuses = {} - for path, status of repo.getRepo().getStatuses() + for path, status of repo.getStatuses() statuses[fs.join(workingDirectoryPath, path)] = status - upstream = repo.getAheadBehindCounts() - repo.destroy() + upstream = repo.getAheadBehindCount() else upstream = {} statuses = {}