Skip to content

Commit

Permalink
Merge pull request #217 from mtelvers/git-fetch
Browse files Browse the repository at this point in the history
Run git fetch before checkout
  • Loading branch information
mtelvers authored Jul 31, 2024
2 parents 6df7653 + 34d005f commit 81ee91d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src-opam/opam.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ let install_opam_from_source ?(add_default_link = true) ?(prefix = "/usr/local")
~hash () =
run
"cd /tmp/opam-sources && cp -P -R -p . ../opam-build-%s && cd \
../opam-build-%s && git checkout %s && ln -s ../opam/src_ext/archives \
src_ext/archives && env PATH=\"/tmp/opam/bootstrap/ocaml/bin:$PATH\" \
./configure --enable-cold-check%s%s && env \
../opam-build-%s && git fetch -q && git checkout %s && ln -s \
../opam/src_ext/archives src_ext/archives && env \
PATH=\"/tmp/opam/bootstrap/ocaml/bin:$PATH\" ./configure \
--enable-cold-check%s%s && env \
PATH=\"/tmp/opam/bootstrap/ocaml/bin:$PATH\" make lib-ext all && mkdir -p \
%s/bin && cp /tmp/opam-build-%s/opam %s/bin/opam-%s && chmod a+x \
%s/bin/opam-%s && rm -rf /tmp/opam-build-%s"
Expand Down

0 comments on commit 81ee91d

Please sign in to comment.