Fix fetching commits

This commit is contained in:
Joscha 2023-08-17 15:21:28 +02:00
parent 5ca8fee66a
commit 441855378b

View file

@ -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);