From 18779c10cd90965898128e58339a0aef4d9c2db4 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 21 Dec 2023 15:26:55 +0200 Subject: [PATCH] fix: actually check out the commit requested Signed-off-by: Lars Wirzenius --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 4347ea7..bab0052 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,6 +142,9 @@ fn run( storage, )?; + debug!("checking out commit {}", commit); + runcmd(&mut run_log, &["git", "checkout", &commit.to_string()], src)?; + let runspec = RunSpec::from_file(&src.join(RUNSPEC_PATH))?; log.write(format!("CI run spec: {:#?}\n", runspec))?;