diff --git a/codex-rs/core/src/plugins/marketplace_add/install.rs b/codex-rs/core/src/plugins/marketplace_add/install.rs index b54f89a815..1ecfa050d3 100644 --- a/codex-rs/core/src/plugins/marketplace_add/install.rs +++ b/codex-rs/core/src/plugins/marketplace_add/install.rs @@ -12,7 +12,10 @@ pub(super) fn clone_git_source( ) -> Result<(), MarketplaceAddError> { let destination_string = destination.to_string_lossy().to_string(); if sparse_paths.is_empty() { - run_git(&["clone", url, destination_string.as_str()], None)?; + run_git( + &["clone", url, destination_string.as_str()], + /*cwd*/ None, + )?; if let Some(ref_name) = ref_name { run_git( &["checkout", ref_name], @@ -30,7 +33,7 @@ pub(super) fn clone_git_source( url, destination_string.as_str(), ], - None, + /*cwd*/ None, )?; let mut sparse_args = vec!["sparse-checkout", "set"]; sparse_args.extend(sparse_paths.iter().map(String::as_str));