parameters: ()
docstring: Checks that there is a remote named 'apache' set up correctly.
    Otherwise, exits with an error message.
docstring_summary: Checks that there is a remote named 'apache' set up correctly.
    Otherwise, exits with an error message.
docstring_tokens: Checks that there is a remote named apache set up correctly . Otherwise exits with an error message .
function: def check_apache_remote():
    """
    Checks that there is a remote named 'apache' set up correctly.
    Otherwise, exits with an error message.
    """
    try:
      url = check_output(['git', 'config', '--local', '--get', 'remote.apache.url']).strip().decode('utf-8')
    except subprocess.CalledProcessError:
      print("No remote named 'apache'. Please set one up, for example with: ", file=sys.stderr)
      print("  git remote add apache", APACHE_REPO, file=sys.stderr)
      sys.exit(1)
    if url != APACHE_REPO:
      print("Unexpected URL for remote 'apache'.", file=sys.stderr)
      print("  Got:     ", url, file=sys.stderr)
      print("  Expected:", APACHE_REPO, file=sys.stderr)
      sys.exit(1)
function_tokens: def check_apache_remote ( ) : try : url = check_output ( [ 'git' , 'config' , '--local' , '--get' , 'remote.apache.url' ] ) . strip ( ) . decode ( 'utf-8' ) except subprocess . CalledProcessError : print ( "No remote named 'apache'. Please set one up, for example with: " , file = sys . stderr ) print ( "  git remote add apache" , APACHE_REPO , file = sys . stderr ) sys . exit ( 1 ) if url != APACHE_REPO : print ( "Unexpected URL for remote 'apache'." , file = sys . stderr ) print ( "  Got:     " , url , file = sys . stderr ) print ( "  Expected:" , APACHE_REPO , file = sys . stderr ) sys . exit ( 1 )