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

Function git_ok

atomic-repository/src/wip.rs:690–702  ·  view source on GitHub ↗
(root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

688 use super::*;
689
690 fn git_ok(root: &Path, args: &[&str]) {
691 let output = Command::new("git")
692 .arg("-C")
693 .arg(root)
694 .args(args)
695 .output()
696 .expect("run Git");
697 assert!(
698 output.status.success(),
699 "git {args:?} failed: {}",
700 String::from_utf8_lossy(&output.stderr)
701 );
702 }
703
704 fn initialized_repository() -> tempfile::TempDir {
705 let root = tempfile::tempdir().expect("tempdir");

Callers 1

initialized_repositoryFunction · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected