     @activeItemSubscription = atom.workspace.onDidChangeActivePaneItem =>
       @subscribeToActiveItem()
     @projectPathSubscription = atom.project.onDidChangePaths =>
-      @subscribeToRepo()
-    @subscribeToRepo()
+      @subscribeToRepositories()
+    @subscribeToRepositories()
     @subscribeToActiveItem()
 
   createBranchArea: ->

class GitView extends HTMLElement
  initialize: ->
    @classList.add('git-view')

    else
      not @getActiveItem()?

  updateAheadBehindCount: (repo) ->
    itemPath = @getActiveItemPath()

    if repo? and @showBranchInformation()
      {ahead, behind} = repo.getCachedUpstreamAheadBehindCount(itemPath) ? {}
