Skip to content

Commit

Permalink
!fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate authored Jun 6, 2024
1 parent ecd3d78 commit 0263a31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/client/opamClient.ml
Original file line number Diff line number Diff line change
Expand Up @@ -799,9 +799,11 @@ let git_for_windows kind mechanism cygwin_is_tweakable =
in
let options =
(List.filter_map (fun (git, bash) ->
if bash then None else
let bin = Filename.dirname git in
Some (`Location bin, "Use found git in "^bin))
if bash then
None
else
let bin = Filename.dirname git in
Some (`Location bin, "Use found git in "^bin))
gits)
@ [
`Specify, "Enter the location of your Git installation";
Expand Down Expand Up @@ -1079,7 +1081,7 @@ let rec cygwin_menu header =
begin match cygcheck with
| Some (Ok (kind2, root2)) ->
let root2 = OpamFilename.Dir.to_string root2 in
if kind = kind2 && String.equal root root2 then
if (kind : [`Cygwin | `Msys2]) = kind2 && String.equal root root2 then
let default, warning =
if kind = `Msys2 && OpamSystem.resolve_command pacman = None then
internal_option, Some (Printf.sprintf
Expand Down
2 changes: 1 addition & 1 deletion src/state/opamSysPoll.ml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ let poll_os_distribution () =
begin match kind with
| `Msys2 -> Some "msys2"
| `Cygwin -> Some "cygwin"
| _ -> os
| `Native | `Tainted _ -> os
end
| os -> os
let os_distribution = Lazy.from_fun poll_os_distribution
Expand Down

0 comments on commit 0263a31

Please sign in to comment.