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

Function init_git

atomic-cli/src/commands/git/import.rs:2182–2187  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

2180 }
2181
2182 fn init_git(root: &Path) {
2183 git_ok(root, &["init", "-q"]);
2184 git_ok(root, &["symbolic-ref", "HEAD", "refs/heads/main"]);
2185 git_ok(root, &["config", "user.name", "Atomic Test"]);
2186 git_ok(root, &["config", "user.email", "atomic@example.com"]);
2187 }
2188
2189 #[test]
2190 #[file_serial]

Calls 1

git_okFunction · 0.70

Tested by

no test coverage detected