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

Function git

src/mcp/server/freshness_tests.rs:8–17  ·  view source on GitHub ↗
(root: &std::path::Path, args: &[&str])

Source from the content-addressed store, hash-verified

6use tempfile::TempDir;
7
8fn git(root: &std::path::Path, args: &[&str]) {
9 let ok = std::process::Command::new(crate::git::git_program())
10 .current_dir(root)
11 .args(args)
12 .output()
13 .expect("git runs")
14 .status
15 .success();
16 assert!(ok, "git {args:?} failed");
17}
18
19async fn init_indexed_repo() -> (TraceDecay, TempDir, PinnedUserDataDir) {
20 let pin = PinnedUserDataDir::new();

Calls 3

successMethod · 0.80
outputMethod · 0.80
git_programFunction · 0.50

Tested by

no test coverage detected