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

Function gate_config

atomic-cli/src/commands/git/hooks.rs:878–888  ·  view source on GitHub ↗
(
    repo: &atomic_repository::Repository,
)

Source from the content-addressed store, hash-verified

876}
877
878fn gate_config(
879 repo: &atomic_repository::Repository,
880) -> atomic_repository::repository::provenance_gate::PublicationGateConfig {
881 atomic_repository::repository::provenance_gate::PublicationGateConfig::from_repo(repo)
882 .unwrap_or(
883 atomic_repository::repository::provenance_gate::PublicationGateConfig {
884 trust: Default::default(),
885 repository_identity: None,
886 },
887 )
888}
889
890pub(crate) fn record_pre_commit(root: &Path) -> CliResult<()> {
891 let root = canonical_root(root)?;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected