def METHOD_NAME():
    """ Reads current git branch from stdout.
        :return: name of current git branch
        :rtype: str
    """
    command = [ 'git', 'rev-parse', '--abbrev-ref', 'HEAD']
    (stdoutdata, _stderrdata, ret) = run_command(command)
    if ret == 0:
        return stdoutdata.strip()
    else:
        raise RuntimeError("failed to get current branch name")