         @span class: 'icon icon-arrow-up commits-ahead-label', outlet: 'commitsAhead'
         @span class: 'icon icon-arrow-down commits-behind-label', outlet: 'commitsBehind'
       @div class: 'git-status inline-block', outlet: 'gitStatus', =>
-        @span outlet: 'gitStatusIcon'
+        @span outlet: 'gitStatusIcon', class: 'icon'
 
   initialize: (@statusBar) ->
     @statusBar.subscribeToBuffer 'saved', @update

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

    status = repo.getCachedPathStatus(itemPath) ? 0
    @gitStatusIcon.removeClass()
    if repo.isStatusModified(status)
      @gitStatusIcon.addClass('icon icon-diff-modified status-modified')
      stats = repo.getDiffStats(itemPath)
      if stats.added and stats.deleted
        @gitStatusIcon.text("+#{stats.added}, -#{stats.deleted}")
      else if stats.added
        @gitStatusIcon.text("+#{stats.added}")
      else if stats.deleted
        @gitStatusIcon.text("-#{stats.deleted}")
      else
        @gitStatusIcon.text('')
    else if repo.isStatusNew(status)
      @gitStatusIcon.addClass('icon icon-diff-added status-added')
      if @statusBar.getActiveBuffer()?
        @gitStatusIcon.text("+#{@statusBar.getActiveBuffer().getLineCount()}")
      else
        @gitStatusIcon.text('')
    else if repo.isPathIgnored(itemPath)
      @gitStatusIcon.addClass('icon icon-diff-ignored status-ignored')
      @gitStatusIcon.text('')

    if @gitStatusIcon.attr('class')
      @gitStatus.element.style.display = ''
    else
      @gitStatus.element.style.display = 'none'

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

      if ahead > 0
        @commitsAhead.element.textContent = ahead
        @commitsAhead.element.style.display = ''
      else
        @commitsAhead.element.style.display = 'none'

      if behind > 0
        @commitsBehind.element.textContent = behind
        @commitsBehind.element.style.display = ''
      else
        @commitsBehind.element.style.display = 'none'
