fix: run clone in . not in storage

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2024-01-04 14:08:56 +02:00
parent 6571432e94
commit 4f8bd94e27
+5 -1
View File
@@ -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];