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

Function git

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

Source from the content-addressed store, hash-verified

49}
50
51fn git(root: &Path, args: &[&str]) {
52 let output = Command::new("git")
53 .args(args)
54 .current_dir(root)
55 .env("GIT_AUTHOR_NAME", "Generated Modify Tests")
56 .env("GIT_AUTHOR_EMAIL", "generated-modify@example.com")
57 .env("GIT_COMMITTER_NAME", "Generated Modify Tests")
58 .env("GIT_COMMITTER_EMAIL", "generated-modify@example.com")
59 .output()
60 .expect("run git");
61 assert!(
62 output.status.success(),
63 "git {args:?} failed: {}",
64 String::from_utf8_lossy(&output.stderr)
65 );
66}
67
68/// A deterministic multi-package lockfile. `packages` drives both the line
69/// count and the byte count. `bump_from` rewrites the versions of every

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected