def METHOD_NAME(commit):
    """ Reset current branch to commit.
        :param str commit: commit id
    """
    command = [ 'git', 'reset', commit ]
    (_stdoutdata, _stderrdata, ret) = run_command(command)
    if ret != 0:
        raise RuntimeError("failed to reset commit %s" % commit)