mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
Annotate marketplace add git clone cwd literals
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user