     @branchArea.hide()
     return unless path
 
-    head = new Git(path).getShortHead()
+    head = @git.getShortHead()
     @branchLabel.text(head)
     @branchArea.show() if head
 

    @gitStatusIcon.empty()
    return unless path

    git = new Git(path)
    if git.isPathModified(path)
      @gitStatusIcon.append $$ -> @span '\uf26d', class: 'modified-status-icon'
    else if git.isPathNew(path)
      @gitStatusIcon.append $$ -> @span '\uf26b', class: 'new-status-icon'



  subscribeToBuffer: ->
    @buffer?.off '.status-bar'
    @buffer = @editor.getBuffer()
    if path = @editor.getPath()
      @git = new Git(path)
    @buffer.on 'change.status-bar', => _.delay (=> @updateBufferModifiedText()), 50
    @buffer.on 'after-save.status-bar', => _.delay (=> @updateStatusBar()), 50
    @updateStatusBar()
