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())