diff --git a/ci/run_ci.py b/ci/run_ci.py index 0ab460fa..e2c340ee 100644 --- a/ci/run_ci.py +++ b/ci/run_ci.py @@ -64,7 +64,7 @@ def report_status(name, start_time, exit=None): print(f"{response_code} failed to update status {name}: {response_data}") def run_job(data): - subprocess.check_output(["git", "clone", must_get_env("REPO_URL")]) + subprocess.run(["git", "clone", must_get_env("REPO_URL")]) os.chdir(os.path.basename(must_get_env("REPO_URL"))) subprocess.run(["git", "checkout", must_get_env("GIT_SHA")]) diff --git a/ci/spawn_jobs.py b/ci/spawn_jobs.py index 839dd6f4..d504f654 100755 --- a/ci/spawn_jobs.py +++ b/ci/spawn_jobs.py @@ -69,6 +69,9 @@ def create_jobs(): "all_rs": ["bin_api", "bin_dispatch"], } + subprocess.run(["git", "clone", must_get_env("REPO_URL")]) + os.chdir(os.path.basename(must_get_env("REPO_URL"))) + now = must_get_env("GIT_SHA") before = must_get_env("OLD_SHA") changed_files = subprocess.check_output(["git", "diff", "--name-only", before, now])