Skip to content

Commit f92a46b

Browse files
welkeyeverAsterDY
authored andcommitted
optimize: use ssh instead of http when clone
1 parent 30ecb4d commit f92a46b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn check_repo_exist(repo: &String) -> String {
9494
let parts: Vec<&str> = repo.split("/").take(2).collect();
9595
base_repo = parts.join("/");
9696
}
97-
let repo_url = format!("https://github.com/{}.git", base_repo);
97+
let repo_url = format!("git@github.com:{}.git", base_repo);
9898
println!("{}", repo_url);
9999
let repo_dir = format!("./tmp/{}", base_repo);
100100
// Directory where you want to clone the repository

0 commit comments

Comments
 (0)