diff --git a/src/dune_pkg/rev_store.ml b/src/dune_pkg/rev_store.ml index a513cab4d58..7631b97924f 100644 --- a/src/dune_pkg/rev_store.ml +++ b/src/dune_pkg/rev_store.ml @@ -663,7 +663,12 @@ module Remote = struct type uninit = t let update ({ repo; handle; source = _; default_branch = _; add_remote = _ } as t) = - let+ () = run repo ~display:!Dune_engine.Clflags.display [ "fetch"; handle ] in + let+ () = + run + repo + ~display:!Dune_engine.Clflags.display + [ "fetch"; "--no-write-fetch-head"; handle ] + in t ;; diff --git a/test/blackbox-tests/test-cases/pkg/opam-repository-download.t b/test/blackbox-tests/test-cases/pkg/opam-repository-download.t index b30ca360982..6e20095af4a 100644 --- a/test/blackbox-tests/test-cases/pkg/opam-repository-download.t +++ b/test/blackbox-tests/test-cases/pkg/opam-repository-download.t @@ -42,7 +42,6 @@ Make a mock repo tarball that will get used by dune to download the package Our cache folder should be populated with a revision store: $ find $XDG_CACHE_HOME | grep HEAD | sort - $TESTCASE_ROOT/.cache/dune/git-repo/FETCH_HEAD $TESTCASE_ROOT/.cache/dune/git-repo/HEAD Make sure lock.dune contains the repo hash: