Use git-utils from status handler

This commit is contained in:
Kevin Sawicki
2013-03-09 13:59:22 -08:00
parent 9d706d6d5c
commit 7bee41f1e2

View File

@@ -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 = {}