add rebase flag for force pushes and diverging local history

This commit is contained in:
slonkazoid 2024-04-23 13:41:19 +03:00
parent 498a3ddf6c
commit 4d70986d2e
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -16,6 +16,7 @@ pub async fn update_repo(repo: &RepoConfig) -> Result<ExitStatus> {
Command::new("git")
.current_dir(&repo.path)
.arg("pull")
.arg("--rebase")
.stdin(Stdio::null())
.spawn()?
.wait()