MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / init_git_repo

Function init_git_repo

crates/openshell-cli/src/run.rs:8597–8606  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

8595 }
8596
8597 fn init_git_repo(path: &Path) {
8598 let mut command = Command::new("git");
8599 super::scrub_git_env(&mut command);
8600 let status = command
8601 .args(["init"])
8602 .current_dir(path)
8603 .status()
8604 .expect("git init");
8605 assert!(status.success(), "git init should succeed");
8606 }
8607
8608 #[test]
8609 fn git_sync_files_scopes_single_file_to_requested_path() {

Calls 1

scrub_git_envFunction · 0.85