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

Function git_probe

atomic-cli/tests/it/git_projection_cb8a_test.rs:88–98  ·  view source on GitHub ↗
(root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

86/// fail, like `symbolic-ref` on a detached HEAD).
87#[allow(dead_code)]
88fn git_probe(root: &Path, args: &[&str]) -> Output {
89 Command::new("git")
90 .args(args)
91 .current_dir(root)
92 .env("GIT_AUTHOR_NAME", "CB-8A Tests")
93 .env("GIT_AUTHOR_EMAIL", "cb8a@example.com")
94 .env("GIT_COMMITTER_NAME", "CB-8A Tests")
95 .env("GIT_COMMITTER_EMAIL", "cb8a@example.com")
96 .output()
97 .expect("run git")
98}
99
100/// Colocated fixture: a Git repository imported into Atomic with an active
101/// shadow sync (RFC §6.1: one conversion policy makes every layer equivalent).

Callers

nothing calls this directly

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected