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

Method git

atomic-cli/tests/it/diagnostics_integration_test.rs:79–91  ·  view source on GitHub ↗
(&self, work: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

77 }
78
79 fn git(&self, work: &Path, args: &[&str]) {
80 let output = Command::new("git")
81 .env_clear()
82 .env("PATH", std::env::var_os("PATH").unwrap())
83 .env("HOME", self.home.path())
84 .env("GIT_CONFIG_NOSYSTEM", "1")
85 .env("GIT_CONFIG_GLOBAL", "/dev/null")
86 .current_dir(work)
87 .args(args)
88 .output()
89 .expect("run git");
90 assert!(output.status.success(), "git {args:?}: {output:?}");
91 }
92
93 fn linked_git_worktree(&self, atomic: bool) -> std::path::PathBuf {
94 let source = self.home.path().join("source");

Callers 1

linked_git_worktreeMethod · 0.45

Calls 3

outputMethod · 0.45
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected