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

Method git

atomic-cli/tests/it/status_git_cb11a_test.rs:100–116  ·  view source on GitHub ↗
(&self, args: &[&str])

Source from the content-addressed store, hash-verified

98 }
99
100 fn git(&self, args: &[&str]) -> Output {
101 let mut command = Command::new("git");
102 command
103 .args(args)
104 .current_dir(self.root())
105 .env("HOME", self.home.path())
106 .env("GIT_CONFIG_NOSYSTEM", "1")
107 .env("GIT_AUTHOR_NAME", "CB-11A Tests")
108 .env("GIT_AUTHOR_EMAIL", "cb11a@example.com")
109 .env("GIT_COMMITTER_NAME", "CB-11A Tests")
110 .env("GIT_COMMITTER_EMAIL", "cb11a@example.com")
111 .env("GIT_AUTHOR_DATE", "2001-01-01T00:00:00Z")
112 .env("GIT_COMMITTER_DATE", "2001-01-01T00:00:00Z")
113 .stdout(Stdio::piped())
114 .stderr(Stdio::piped());
115 command.output().expect("run git")
116 }
117
118 fn git_ok(&self, args: &[&str]) -> Output {
119 let output = self.git(args);

Callers 1

git_okMethod · 0.45

Calls 3

rootMethod · 0.45
pathMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected