From 4334ab6ac28dfa193bf5b874c1bb9b662d332235 Mon Sep 17 00:00:00 2001 From: Sathiyaraman M Date: Tue, 28 Oct 2025 10:25:13 +0530 Subject: [PATCH] Address PR comment --- crates/git/src/repository.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs index 221b03d41f1838aef8f4695dd844206ecffddb5d..e6a2b43bcc0fad3459d045ce045088fec75f9fa1 100644 --- a/crates/git/src/repository.rs +++ b/crates/git/src/repository.rs @@ -1593,8 +1593,13 @@ impl GitRepository for RealGitRepository { command .envs(env.iter()) .current_dir(&working_directory?) - .args(["pull"]) - .arg(if rebase { "--rebase" } else { "--no-rebase" }) + .arg("pull"); + + if rebase { + command.arg("--rebase"); + } + + command .arg(remote_name) .arg(branch_name) .stdout(smol::process::Stdio::piped())