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

Function run_git

src/worktree.rs:201–208  ·  view source on GitHub ↗
(cwd: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

199 use tempfile::tempdir;
200
201 fn run_git(cwd: &Path, args: &[&str]) {
202 let status = git_command()
203 .args(args)
204 .current_dir(cwd)
205 .status()
206 .expect("git not on PATH — required for worktree tests");
207 assert!(status.success(), "git {args:?} failed in {}", cwd.display());
208 }
209
210 #[test]
211 fn no_mismatch_outside_git() {

Calls 2

git_commandFunction · 0.85
statusMethod · 0.80