fix: actually check out the commit requested

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2023-12-21 15:26:55 +02:00
parent 389839552e
commit 18779c10cd
+3
View File
@@ -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))?;