def remote_branch(stdin_first_line):
    """
    Reads the name of the remote git branch from runtime parameters.
    In the pre-push.py hook the name of the remote branch is passed as the $1 parameter.
    :param stdin_first_line the first line of the standard input

    >>> remote_branch("refs/heads/master a9d45baccd631601087a75a6605909c16bbfdbca refs/heads/master 67b6dc7a5e256ae590d305a766e627258b164899")
    'master'
    >>> remote_branch("refs/heads/master a9d45baccd631601087a75a6605909c16bbfdbca refs/heads/hot-fix 67b6dc7a5e256ae590d305a766e627258b164899")
    'hot-fix'
    """
    stdin_parts = stdin_first_line.split(" ")
    remote = stdin_parts[2]
    remote_parts = remote.split("/")
    return remote_parts[-1]