Radish alpha
r
rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE
Radicle CI adapter for native CI
Radicle
Git
fix: actually check out the commit requested
Lars Wirzenius committed 2 years ago
commit 18779c10cd90965898128e58339a0aef4d9c2db4
parent 3898395
1 file changed +3 -0
modified 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))?;