def remote.said
import ezx@1.11.0.0/src/git/exec.bend as Execimport Base
import ezx@1.11.0.0/src/git/git.bend as G
85# what ls-remote said, or why it said nothing
86def remote.said(ok: Bool, +url: String, +text: String) -> IO(G.Tip):
87 match ok:
88 case False{}:
89 IO.die(G.Tip, 1, "ez: git ls-remote " ++ url ++ ": " ++ text)
90 case True{}:
91 +rs = G.rows(String.lines(text))
92 remote.got(String.is_empty(G.tip.rev(rs)), G.tip.rev(rs), G.tip.branch(rs), url)