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

Lines changed: 2 additions & 2 deletions
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", "helabot@groww.in"])
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy