Radish alpha
r
Radicle CI adapter for native CI
Radicle
Git (anonymous pull)
Log in to clone via SSH
fix: actually check out the commit requested
Lars Wirzenius committed 2 years ago
commit 18779c10cd90965898128e58339a0aef4d9c2db4
parent 389839552e9e6dc4dda34a145e9bf38512a3825d
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))?;