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

Function git

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

Source from the content-addressed store, hash-verified

80
81#[allow(dead_code)]
82fn git(root: &Path, args: &[&str]) {
83 let output = Command::new("git")
84 .arg("-C")
85 .arg(root)
86 .args(args)
87 .env("GIT_AUTHOR_DATE", "@1726732800 +0000")
88 .env("GIT_COMMITTER_DATE", "@1726732800 +0000")
89 .output()
90 .expect("run git");
91 assert!(
92 output.status.success(),
93 "git {args:?} failed:\n{}",
94 String::from_utf8_lossy(&output.stderr)
95 );
96}
97
98/// A colocated Git + Atomic repository with an active shadow sync and the
99/// recorded explicit opt-in — the state `atomic git shim cutover`

Callers

nothing calls this directly

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected