     else
       @git.unstagePatch(patch, @patch)
 
-    promise.then ->
-      atom.emit('did-update-git-repository')
+    promise.then =>
+      @git.emit('did-update-repository')
 
 module.exports = document.registerElement 'git-hunk-view',
   prototype: HunkView.prototype


      contentNode.innerHTML = highlighted if highlighted

  setHunk: (@patch, @index, @status) ->
    @hunk = @patch.hunks()[@index]
    header = @hunk.header()
    headerNode = @createLineNode()


  attachedCallback: ->
    @base = @el.closest('.git-root-view')

  createLineNode: ->
    lineNode = document.createElement('div')
