     @branchArea.element.style.display = 'none'
     if @showBranchInformation()
       head = atom.project.getRepo()?.getShortHead(@getActiveItemPath()) or ''
-      @branchLabel.text(head)
+      @branchLabel.element.textContent = head
       @branchArea.element.style.display = '' if head
 
   showBranchInformation: ->

      {ahead, behind} = repo.getCachedUpstreamAheadBehindCount(itemPath) ? {}

      if ahead > 0
        @commitsAhead.text(ahead)
        @commitsAhead.element.style.display = ''
      else
        @commitsAhead.element.style.display = 'none'

      if behind > 0
        @commitsBehind.text(behind)
        @commitsBehind.element.style.display = ''
      else
        @commitsBehind.element.style.display = 'none'

      @commitsArea.element.style.display = '' if ahead > 0 or behind > 0

    status = repo.getCachedPathStatus(itemPath) ? 0
    @gitStatus.element.classList.remove('icon-diff-modified', 'status-modified', 'icon-diff-added', 'status-added', 'icon-diff-ignored', 'status-ignored')

    if repo.isStatusModified(status)
      @gitStatusIcon.element.classList.add('icon-diff-modified', 'status-modified')
      stats = repo.getDiffStats(itemPath)
      if stats.added and stats.deleted
        @gitStatusIcon.element.textContent = "+#{stats.added}, -#{stats.deleted}"
      else if stats.added
        @gitStatusIcon.element.textContent = "+#{stats.added}"
      else if stats.deleted
        @gitStatusIcon.element.textContent = "-#{stats.deleted}"
      else
        @gitStatusIcon.element.textContent = ''
      @gitStatus.element.style.display = ''
    else if repo.isStatusNew(status)
      @gitStatusIcon.element.classList.add('icon-diff-added', 'status-added')
      if @statusBar.getActiveBuffer()?
        @gitStatusIcon.element.textContent = "+#{@statusBar.getActiveBuffer().getLineCount()}"
      else
        @gitStatusIcon.element.textContent = ''
      @gitStatus.element.style.display = ''
    else if repo.isPathIgnored(itemPath)
      @gitStatusIcon.element.classList.add('icon-diff-ignored',  'status-ignored')
      @gitStatusIcon.element.textContent = ''
      @gitStatus.element.style.display = ''
