tools/check_git_config.py
def read_git_insteadof(host):
  """Reads relevant insteadOf config entries."""
  try:
    proc = subprocess.Popen([GIT_EXE, 'config', '-l'], stdout=subprocess.PIPE)
    out, _ = proc.communicate()
    lines = []
    for line in out.strip().split('\n'):
      line = line.lower()
      if 'insteadof=' in line and host in line:
        lines.append(line)
    return '\n'.join(lines)
  except OSError as exc:
    if exc.errno != errno.ENOENT:
      logging.exception('Unexpected error when calling git')
    return ''
Reads relevant insteadOf config entries.
Reads relevant insteadOf config entries.
Reads relevant insteadOf config entries .
def read_git_insteadof(host):
  try:
    proc = subprocess.Popen([GIT_EXE, 'config', '-l'], stdout=subprocess.PIPE)
    out, _ = proc.communicate()
    lines = []
    for line in out.strip().split('\n'):
      line = line.lower()
      if 'insteadof=' in line and host in line:
        lines.append(line)
    return '\n'.join(lines)
  except OSError as exc:
    if exc.errno != errno.ENOENT:
      logging.exception('Unexpected error when calling git')
    return ''
def read_git_insteadof ( host ) : try : proc = subprocess . Popen ( [ GIT_EXE , 'config' , '-l' ] , stdout = subprocess . PIPE ) out , _ = proc . communicate ( ) lines = [ ] for line in out . strip ( ) . split ( '\n' ) : line = line . lower ( ) if 'insteadof=' in line and host in line : lines . append ( line ) return '\n' . join ( lines ) except OSError as exc : if exc . errno != errno . ENOENT : logging . exception ( 'Unexpected error when calling git' ) return ''
Reads relevant insteadOf config entries.
Reads relevant insteadOf config entries .
"""Reads relevant insteadOf config entries."""
host