MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / verify_remote_binding_refs

Function verify_remote_binding_refs

atomic-cli/src/commands/git/transport.rs:504–510  ·  view source on GitHub ↗

Verify the remote holds every expected ref at its exact target via `git ls-remote`. Returns the verified (ref, oid) list; any missing or mismatched ref is a typed refusal naming the gap.

(
    workdir: &Path,
    remote: &str,
    expected: &[(String, String)],
)

Source from the content-addressed store, hash-verified

502/// `git ls-remote`. Returns the verified (ref, oid) list; any missing or
503/// mismatched ref is a typed refusal naming the gap.
504fn verify_remote_binding_refs(
505 workdir: &Path,
506 remote: &str,
507 expected: &[(String, String)],
508) -> CliResult<Vec<String>> {
509 verify_remote_binding_refs_pattern(workdir, remote, expected, "refs/atomic/bindings/*")
510}
511
512fn verify_remote_binding_refs_pattern(
513 workdir: &Path,

Callers 1

transfer_binding_refsFunction · 0.85

Calls 1

Tested by

no test coverage detected