From db48ac41c93db5f5c362e9b39d261c3a33870fca Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Wed, 5 Mar 2025 00:29:17 -0700 Subject: [PATCH] pass in correct path --- src/refractr.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/refractr.rs b/src/refractr.rs index 6b9b5ae..1ffbdab 100644 --- a/src/refractr.rs +++ b/src/refractr.rs @@ -206,12 +206,12 @@ pub fn run(refractr: Refractr, cfgs: Vec) -> std::io::Result<()> { // make initial clone common::verbose(refractr.verbose, 1, format!("Cloning repository: {}", &cfg.config.from)); - let repo_dir = &format!("{}/{}", &path_str, repo_name); + let repo_dir = format!("{}/{}", &path_str, repo_name); let repo = match Repository::clone(&cfg.config.from, Path::new(&repo_dir)) { Ok(repo) => repo, Err(_) => { eprintln!("refractr: warning: found existing repo at {}, attempting to use", repo_dir); - match fast_forward(&refractr, repo_dir, &cfg.config.branches) { + match fast_forward(&refractr, &repo_dir, &cfg.config.branches) { Ok(_) => if let Ok(repo) = Repository::open(Path::new(&repo_dir)) { repo } else { @@ -229,7 +229,7 @@ pub fn run(refractr: Refractr, cfgs: Vec) -> std::io::Result<()> { if cfg.config.schedule.enabled { loop_repos.push(OpenedRepository { repo, - path: path_str, + path: repo_dir, remotes, cfg: cfg.config });