From 441855378b8367931ff7e3f63ae4b5ccab8d2684 Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 17 Aug 2023 15:21:28 +0200 Subject: [PATCH] Fix fetching commits --- src/git.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.rs b/src/git.rs index b30279e..ea38f64 100644 --- a/src/git.rs +++ b/src/git.rs @@ -105,9 +105,9 @@ pub fn fetch_head(path: &Path, url: &str) -> Result<(), Error> { pub fn fetch(path: &Path, url: &str, refspecs: &[String]) -> Result<(), Error> { let mut command = Command::new("git"); command - .arg("fetch") .arg("-C") .arg(path) + .arg("fetch") .arg("--prune") .arg("--") .arg(url);