MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / run_git

Function run_git

tests/core_cli_suite/tracedecay_test.rs:58–71  ·  view source on GitHub ↗
(project: &std::path::Path, args: &[&str])

Source from the content-addressed store, hash-verified

56}
57
58fn run_git(project: &std::path::Path, args: &[&str]) {
59 let output = Command::new("git")
60 .args(["-c", "core.hooksPath=.git/no-hooks"])
61 .args(args)
62 .current_dir(project)
63 .output()
64 .expect("git command should run");
65 assert!(
66 output.status.success(),
67 "git {args:?} failed\nstdout:\n{}\nstderr:\n{}",
68 String::from_utf8_lossy(&output.stdout),
69 String::from_utf8_lossy(&output.stderr),
70 );
71}
72
73// ---------------------------------------------------------------------------
74// is_test_file

Calls 1

outputMethod · 0.80

Tested by

no test coverage detected