pub async fn materialize_git_source(git: &GitSource, dir: &Path) -> Result<()>Expand description
Shallow-clone (or update) a GitSource into dir (R561-F1). Idempotent:
clones when dir/.git is absent, otherwise fetches the pinned ref and
force-checks-it-out. Uses the system git so it inherits the operator’s
credential helpers / SSH agent — no in-process git library.
pub (R615-T3 / W274): yah infra sync reuses this verbatim for
InfraSourceKind::Git sources rather than a second shallow-clone-or-pull
implementation — same “one git-source shape, reused” discipline R615-F1
already applied to the type.