Skip to content

Commit 81ee91d

Browse files
authored
Merge pull request #217 from mtelvers/git-fetch
Run git fetch before checkout
2 parents 6df7653 + 34d005f commit 81ee91d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src-opam/opam.ml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ let install_opam_from_source ?(add_default_link = true) ?(prefix = "/usr/local")
3737
~hash () =
3838
run
3939
"cd /tmp/opam-sources && cp -P -R -p . ../opam-build-%s && cd \
40-
../opam-build-%s && git checkout %s && ln -s ../opam/src_ext/archives \
41-
src_ext/archives && env PATH=\"/tmp/opam/bootstrap/ocaml/bin:$PATH\" \
42-
./configure --enable-cold-check%s%s && env \
40+
../opam-build-%s && git fetch -q && git checkout %s && ln -s \
41+
../opam/src_ext/archives src_ext/archives && env \
42+
PATH=\"/tmp/opam/bootstrap/ocaml/bin:$PATH\" ./configure \
43+
--enable-cold-check%s%s && env \
4344
PATH=\"/tmp/opam/bootstrap/ocaml/bin:$PATH\" make lib-ext all && mkdir -p \
4445
%s/bin && cp /tmp/opam-build-%s/opam %s/bin/opam-%s && chmod a+x \
4546
%s/bin/opam-%s && rm -rf /tmp/opam-build-%s"

0 commit comments

Comments
 (0)