-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c294644
commit ea77bd9
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -418,7 +418,7 @@ fn save_pr_branch_files( | |
} | ||
|
||
// Set global Git config for user email and name | ||
fn set_git_global_user_config() -> Result<(), Box<dyn std::error::Error>> { | ||
pub fn set_git_global_user_config() -> Result<(), Box<dyn std::error::Error>> { | ||
// Set global email | ||
Command::new("git") | ||
.args(&["config", "--global", "user.email", "[email protected]"]) | ||
|
@@ -439,7 +439,7 @@ pub fn checkout( | |
pr_branch: Option<&str>, | ||
) -> Result<(), Box<dyn std::error::Error>> { | ||
// Step 1: Clone the repository | ||
set_git_user_config()?; | ||
set_git_global_user_config()?; | ||
let mut clone_cmd = Command::new("git"); | ||
clone_cmd.arg("clone").arg(clone_url).arg(clone_path); | ||
if let Some(branch) = base_branch { | ||
|