From 7bee41f1e2ea6bd7ff1673348288707dc189e197 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Sat, 9 Mar 2013 13:59:22 -0800 Subject: [PATCH] Use git-utils from status handler --- src/app/repository-status-handler.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 = {}