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

Function run_git

tests/mcp_suite/git_correlation_test.rs:21–28  ·  view source on GitHub ↗
(dir: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

19use crate::common;
20
21fn run_git(dir: &Path, args: &[&str]) {
22 let status = Command::new(common::git_program())
23 .args(args)
24 .current_dir(dir)
25 .status()
26 .unwrap_or_else(|e| panic!("git {args:?} should spawn: {e}"));
27 assert!(status.success(), "git {args:?} should succeed");
28}
29
30/// Initializes a project repo (`main`) plus a linked worktree checked out on
31/// `feature/session` under `base`. Returns `(project_root, worktree)`.

Callers 1

Calls 2

statusMethod · 0.80
git_programFunction · 0.50

Tested by

no test coverage detected