     if @buffer = @pane.activeItem.getBuffer?()
       @buffer.on 'modified-status-changed', @updateBufferHasModifiedText
       @buffer.on 'saved', @updateStatusBar
-
-    @updateStatusBar()
 
   updateStatusBar: =>
     @updateGrammarText()

        @a href: '#', class: 'grammar-name inline-block', outlet: 'grammarName'

  initialize: (rootView, @pane) ->
    @commitsArea.hide()
    @updatePathText()
    @subscribe @pane, 'pane:active-item-changed', =>
      @subscribeToBuffer()
      @updatePathText()
    @subscribe @pane, 'pane:active-item-title-changed', =>
      @updatePathText()


    @subscribeToRepo()
    @subscribeToBuffer()

  afterAttach: ->
    @commitsArea.hide()
    @updatePathText()
    @updateStatusBar()

  beforeRemove: ->
    @unsubscribeFromBuffer()
