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

Function git_repo

atomic-cli/tests/it/git_import_tree_shape_regression.rs:72–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72fn git_repo() -> (PathBuf, PathBuf) {
73 let root = tempfile::tempdir().unwrap().keep();
74 let home = tempfile::tempdir().unwrap().keep();
75 git(&root, &["init", "-q", "-b", "main"]);
76 (root, home)
77}
78
79fn commit_all(root: &Path, message: &str) {
80 git(root, &["add", "-A"]);

Calls 2

gitFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected