Annotate marketplace add git clone cwd literals

This commit is contained in:
xli-oai
2026-04-13 18:05:41 -07:00
parent d94e2e1463
commit 1352f5c5e6
@@ -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));