Skip to content

Commit

Permalink
git: fallback, fetch all repo to get sha1 with git < 2.14 (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Oct 5, 2018
1 parent 8c5f17a commit db65176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository/opamGit.ml
Expand Up @@ -85,7 +85,7 @@ module VCS : OpamVCS.VCS = struct
on 'fetch HASH' when HASH isn't available locally already).
Also, remove the [--update-shallow] option in case git is so old that
it didn't exist yet, as that is not needed in the general case *)
git repo_root [ "fetch" ; "-q"; origin ] @@> fun r ->
git repo_root [ "fetch" ; "-q" ] @@> fun r ->
OpamSystem.raise_on_process_error r;
(* retry to fetch the specific branch *)
git repo_root [ "fetch" ; "-q"; origin; refspec ] @@> fun r ->
Expand Down

0 comments on commit db65176

Please sign in to comment.