Homebrew bottle builder and tap manager for OCaml monorepos
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Always set push URL on tap, not just on first clone

set-url --push only ran in the clone branch. On subsequent runs
the tap directory already existed, so the pull branch ran instead,
leaving the origin push URL as HTTPS. Now sets the push URL every
time before pull, so pushes always use the configured SSH URL.

+8
+8
lib/homebrew.ml
··· 651 651 % "origin/main") 652 652 = Ok (`Exited 0) 653 653 in 654 + (* Always ensure push URL is SSH, even for existing clones *) 655 + let* _ = 656 + Bos.OS.Cmd.run 657 + Bos.Cmd.( 658 + v "git" % "-C" % config.tap.local_path % "remote" % "set-url" 659 + % "--push" % "origin" % config.tap.push_url) 660 + |> Result.map_error (fun (`Msg e) -> e) 661 + in 654 662 if has_remote_commits then 655 663 let* _ = 656 664 Bos.OS.Cmd.run