tools/check_git_config.py
def read_git_config(prop):
  """Reads git config property of src.git repo.

  Returns empty string in case of errors.
  """
  try:
    proc = subprocess.Popen(
        [GIT_EXE, 'config', prop], stdout=subprocess.PIPE, cwd=REPO_ROOT)
    out, _ = proc.communicate()
    return out.strip().decode('utf-8')
  except OSError as exc:
    if exc.errno != errno.ENOENT:
      logging.exception('Unexpected error when calling git')
    return ''
Reads git config property of src.git repo.

  Returns empty string in case of errors.
  
Reads git config property of src.git repo.
Returns empty string in case of errors.
Reads git config property of src . git repo . Returns empty string in case of errors .
def read_git_config(prop):
  try:
    proc = subprocess.Popen(
        [GIT_EXE, 'config', prop], stdout=subprocess.PIPE, cwd=REPO_ROOT)
    out, _ = proc.communicate()
    return out.strip().decode('utf-8')
  except OSError as exc:
    if exc.errno != errno.ENOENT:
      logging.exception('Unexpected error when calling git')
    return ''
def read_git_config ( prop ) : try : proc = subprocess . Popen ( [ GIT_EXE , 'config' , prop ] , stdout = subprocess . PIPE , cwd = REPO_ROOT ) out , _ = proc . communicate ( ) return out . strip ( ) . decode ( 'utf-8' ) except OSError as exc : if exc . errno != errno . ENOENT : logging . exception ( 'Unexpected error when calling git' ) return ''
Reads git config property of src.git repo.
Reads git config property of src . git repo .
"""Reads git config property of src.git repo.

  Returns empty string in case of errors.
  """
prop