def git_repo_check(service): git_url = get_git_url(service) cmd = 'git ls-remote %s' % git_url returncode, _ = _run(cmd, timeout=5) if returncode == 0: print PaastaCheckMessages.GIT_REPO_FOUND else: print PaastaCheckMessages.git_repo_missing(git_url)
def git_repo_check(service, soa_dir): git_url = get_git_url(service, soa_dir) cmd = "git ls-remote %s" % git_url returncode, _ = _run(cmd, timeout=5) if returncode == 0: print(PaastaCheckMessages.GIT_REPO_FOUND) else: print(PaastaCheckMessages.git_repo_missing(git_url))