diff --git a/spec/app/git-spec.coffee b/spec/app/git-spec.coffee index c618f2ead..2a9522d3a 100644 --- a/spec/app/git-spec.coffee +++ b/spec/app/git-spec.coffee @@ -148,7 +148,7 @@ describe "Git", -> fs.write(path, "#{originalPathText} edited line") expect(repo.getDiffStats(path)).toEqual {added: 1, deleted: 1} - describe ".refreshStatuses()", -> + describe ".refreshStatus()", -> [newPath, modifiedPath, cleanPath, originalModifiedPathText] = [] beforeEach -> @@ -167,7 +167,7 @@ describe "Git", -> fs.write(modifiedPath, 'making this path modified') statusHandler = jasmine.createSpy('statusHandler') repo.on 'statuses-changed', statusHandler - repo.refreshStatuses() + repo.refreshStatus() waitsFor -> statusHandler.callCount > 0 diff --git a/src/app/git.coffee b/src/app/git.coffee index c3d9cf2b2..a73fe41b4 100644 --- a/src/app/git.coffee +++ b/src/app/git.coffee @@ -34,7 +34,7 @@ class Git $ = require 'jquery' @subscribe $(window), 'focus', => @refreshIndex() - @refreshStatuses() + @refreshStatus() getRepo: -> unless @repo? @@ -107,7 +107,7 @@ class Git isSubmodule: (path) -> @getRepo().isSubmodule(@relativize(path)) - refreshStatuses: -> + refreshStatus: -> new RepositoryStatusTask(this).start() _.extend Git.prototype, Subscriber