'Grab the results of the action and finish up'

def action_completed(self, task):

    (status, out, err) = task.result
    self.buttons.setEnabled(True)
    command = (u'git    %s' % self.action.lower())
    message = (N_(u'"%(command)s"    returned    exit    status    %(status)d') % dict(command=command, status=status))
    details = u''
    if out:
        details = out
    if err:
        details += (u'\n\n' + err)
    log_message = message
    if details:
        log_message += (u'\n\n' + details)
    Interaction.log(log_message)
    if (status == 0):
        self.accept()
        return
    if (self.action == PUSH):
        message += u'\n\n'
        message += N_(u'Have    you    rebased/pulled    lately?')
    Interaction.critical(self.windowTitle(), message=message, details=details)
