Skip to content

Commit

Permalink
Merge pull request #5842 from rjbou/git-win-fix
Browse files Browse the repository at this point in the history
arg: fix loading git location from config file at init
  • Loading branch information
kit-ty-kate committed Feb 16, 2024
2 parents 938e091 + c8d437f commit 1507b23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ users)

## Internal: Windows
* Ensure that the system critical error dialog is disabled when opam starts [#5828 @dra27]
* Fix loading git location at init [#5843 @rjbou]

## Test

Expand Down
6 changes: 3 additions & 3 deletions src/client/opamArg.ml
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,12 @@ let apply_global_options cli o =
{ pelem = String cygcheck; _}::_ ->
let cygbin = Filename.dirname cygcheck in
OpamCoreConfig.update ~cygbin ()
| Some { pelem = String "git-location"; _},
{ pelem = String git_location; _}::_ ->
OpamCoreConfig.update ~git_location ()
| _, element::elements -> aux (Some element) elements
in
aux None elements
| { pelem = Variable ({ pelem = "git-location"; _},
{pelem = String git_location; _}); _} ->
OpamCoreConfig.update ~git_location ()
| _ -> ())
opamfile.file_contents
with
Expand Down

0 comments on commit 1507b23

Please sign in to comment.