diff --git a/p/src/commands/run.rs b/p/src/commands/run.rs index ff97a84..c4296bb 100644 --- a/p/src/commands/run.rs +++ b/p/src/commands/run.rs @@ -32,18 +32,8 @@ pub fn execute(worker_name: Option<&str>, cmd: Vec, no_sync: bool) -> Re .to_string_lossy() .to_string(); - // ── 1. Sync directory ───────────────────────────────────────────────────── - - if no_sync { - eprintln!("Skipping sync (--no-sync)."); - } else { - eprintln!("Syncing to {}...", worker.name); - sync::push_dir(&worker, &std::env::current_dir()?, &work_dir) - .context("directory sync failed")?; - } - // ── 1. Create remote directories ───────────────────────────────────────── - // Must happen before sync so rsync has a destination to write into. + // Done first so rsync has an existing destination to write into. ssh::run_capture(&worker, &format!("mkdir -p {} {}", job_dir, work_dir)) .context("failed to create remote directories")?;