diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc index 3b0d0f74a..2fe98f135 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -548,8 +548,8 @@ struct GitInputScheme : InputScheme : "refs/heads/" + ref; runProgram("git", true, { "-C", repoDir, + "--git-dir", gitDir, "fetch", - "--git-dir", getGitDir(), "--quiet", "--force", "--",