def clone.bare

ezx@1.11.0.0 · src/git/exec.bend:102

import ezx@1.11.0.0/src/git/exec.bend as Exec
import Base
import ezx@1.11.0.0/src/share/say.bend as Say
import ezx@1.11.0.0/src/share/spin.bend as Spin

102# a bare clone, blobs left behind. Ancestry only needs the commits. The clone
103# is quiet; the line is what shows while it runs.
104def clone.bare(+work: String, +url: String) -> IO(Unit):
105  do IO<Unit>:
106    +s : Say.Spin <- Spin.hold(Say.git.fetch(url))
107    +from : String <- anchored(url)
108    run("clone", ["git", "clone", "--bare", "--filter=blob:none", "-q", from, work])
109    Spin.done(s)

Uses (11)

Used by (1)