Skip to content

Commit ea77bd9

Browse files
committed
PR Clone fix
1 parent c294644 commit ea77bd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/common.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ fn save_pr_branch_files(
418418
}
419419

420420
// Set global Git config for user email and name
421-
fn set_git_global_user_config() -> Result<(), Box<dyn std::error::Error>> {
421+
pub fn set_git_global_user_config() -> Result<(), Box<dyn std::error::Error>> {
422422
// Set global email
423423
Command::new("git")
424424
.args(&["config", "--global", "user.email", "[email protected]"])
@@ -439,7 +439,7 @@ pub fn checkout(
439439
pr_branch: Option<&str>,
440440
) -> Result<(), Box<dyn std::error::Error>> {
441441
// Step 1: Clone the repository
442-
set_git_user_config()?;
442+
set_git_global_user_config()?;
443443
let mut clone_cmd = Command::new("git");
444444
clone_cmd.arg("clone").arg(clone_url).arg(clone_path);
445445
if let Some(branch) = base_branch {

0 commit comments

Comments
 (0)