Radish alpha
r
rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE
Radicle CI adapter for native CI
Radicle
Git
fix: run clone in . not in storage
Lars Wirzenius committed 2 years ago
commit 4f8bd94e27acd6ca987b0c94f7d12280ac2bfb64
parent 6571432
1 file changed +5 -1
modified src/main.rs
@@ -172,7 +172,7 @@ fn run(
            repo_path.to_str().unwrap(),
            src.to_str().unwrap(),
        ],
-
        storage,
+
        Path::new("."),
    )?;

    debug!("checking out commit {}", commit);
@@ -206,8 +206,12 @@ fn run(

/// Run a command in a directory.
fn runcmd(log: &mut LogFile, argv: &[&str], cwd: &Path) -> Result<(), NativeError> {
+
    debug!("runcmd: argv={:?}", argv);
+
    debug!("runcmd: cwd={:?}", cwd);
+

    log.write_str("## Run command\n\n")?;
    log.write(format!("~~~\n{:?}\n~~~\n\n", argv))?;
+
    log.write(format!("in directory: {}n", cwd.display()))?;

    assert!(!argv.is_empty());
    let argv0 = argv[0];