1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

fix(plugin): drop Repository, so that renaming succeeds on Windows

This commit is contained in:
Carsten Kragelund 2023-05-25 00:41:03 +02:00 committed by Wez Furlong
parent cf3bc814ba
commit 780ae67c71

View File

@ -143,7 +143,7 @@ impl RepoSpec {
std::fs::create_dir_all(&plugins_dir)?;
let target_dir = TempDir::new_in(&plugins_dir)?;
log::debug!("Cloning {} into temporary dir {target_dir:?}", self.url);
let _repo = Repository::clone_recurse(&self.url, target_dir.path())?;
Repository::clone_recurse(&self.url, target_dir.path())?;
let target_dir = target_dir.into_path();
let checkout_path = self.checkout_path();
match std::fs::rename(&target_dir, &checkout_path) {