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

Function git

atomic-repository/src/repository/tests/workspace_txn_tests.rs:500–513  ·  view source on GitHub ↗
(root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

498}
499
500fn git(root: &Path, args: &[&str]) -> String {
501 let output = Command::new("git")
502 .args(args)
503 .current_dir(root)
504 .output()
505 .unwrap();
506 assert!(
507 output.status.success(),
508 "git {:?} failed: {}",
509 args,
510 String::from_utf8_lossy(&output.stderr)
511 );
512 String::from_utf8(output.stdout).unwrap().trim().to_string()
513}

Calls 2

unwrapMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected