MCPcopy Create free account
hub / github.com/GCWing/BitFun / run_git

Function run_git

src/crates/services/services-integrations/tests/git_contracts.rs:205–218  ·  view source on GitHub ↗
(repo_dir: &std::path::Path, args: &[&str])

Source from the content-addressed store, hash-verified

203}
204
205fn run_git(repo_dir: &std::path::Path, args: &[&str]) {
206 let output = Command::new("git")
207 .current_dir(repo_dir)
208 .args(args)
209 .output()
210 .unwrap();
211 assert!(
212 output.status.success(),
213 "git {:?} failed: {}{}",
214 args,
215 String::from_utf8_lossy(&output.stdout),
216 String::from_utf8_lossy(&output.stderr)
217 );
218}
219
220#[test]
221fn git_worktree_info_preserves_camel_case_contract() {

Calls 1

outputMethod · 0.80

Tested by

no test coverage detected