Skip to content

Commit

Permalink
chore: switched clone arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yingrjimsch committed Sep 11, 2024
1 parent cf36d3c commit c32c211
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cli/clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub async fn clone(
} else {
let status: bool = run_cmd_s(
Command::new("git")
.args(&create_pull_request_args(
.args(&create_clone_args(
&branch,
&clone_url,
&active_profile.targetbasepath,
Expand Down Expand Up @@ -168,14 +168,15 @@ fn get_clone_url<'a>(pulloption: &'a str, repo: &'a Box<dyn Repo>) -> &'a str {
return clone_url;
}

fn create_pull_request_args(
fn create_clone_args(
branch: &str,
clone_url: &str,
target_basepath: &str,
directory: &str,
) -> Vec<String> {
let mut args: Vec<String> = vec![
"clone".to_string(),
"--filter=blob:none".to_string(),
clone_url.to_string(),
format!("{}/{}", target_basepath, directory),
];
Expand Down

0 comments on commit c32c211

Please sign in to comment.