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

This commit is contained in:
Carsten Kragelund authored and Wez Furlong committed 2023-05-28 09:18:42 -07:00
1 parent cf3bc814ba
commit 780ae67c71
1 file changed
+1 -1
+1 -1
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) {