mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-19 01:30:40 +08:00
fix: run clone in . not in storage
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
+5
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user