def run_git_or_fail(args, git_path=_DEFAULT_GIT, input=None, **popen_kwargs):
 if ('stderr' not in popen_kwargs):
  popen_kwargs['stderr'] = subprocess.STDOUT
 (returncode, stdout) = run_git(args, git_path=git_path, input=input, capture_stdout=True, **popen_kwargs)
 if (returncode != 0):
  raise AssertionError(('git with args %r failed with %d: %r' % (args, returncode, stdout)))
 return stdout

def run_git_or_fail ( args , git_path = _DEFAULT_GIT , input = None , ** popen_kwargs ) : if ( 'stderr' not in popen_kwargs ) : popen_kwargs [ 'stderr' ] = subprocess . STDOUT ( returncode , stdout ) = run_git ( args , git_path = git_path , input = input , capture_stdout = True , ** popen_kwargs ) if ( returncode != 0 ) : raise AssertionError ( ( 'git with args %r failed with %d: %r' % ( args , returncode , stdout ) ) ) return stdout
run a git command .