File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ fn save_pr_branch_files(
418
418
}
419
419
420
420
// 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 > > {
422
422
// Set global email
423
423
Command :: new ( "git" )
424
424
. args ( & [ "config" , "--global" , "user.email" , "[email protected] " ] )
@@ -439,7 +439,7 @@ pub fn checkout(
439
439
pr_branch : Option < & str > ,
440
440
) -> Result < ( ) , Box < dyn std:: error:: Error > > {
441
441
// Step 1: Clone the repository
442
- set_git_user_config ( ) ?;
442
+ set_git_global_user_config ( ) ?;
443
443
let mut clone_cmd = Command :: new ( "git" ) ;
444
444
clone_cmd. arg ( "clone" ) . arg ( clone_url) . arg ( clone_path) ;
445
445
if let Some ( branch) = base_branch {
You can’t perform that action at this time.
0 commit comments