MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / gitenv_spawn_probe

Function gitenv_spawn_probe

tests/test_subprocess.c:1705–1715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1703}
1704
1705static int gitenv_spawn_probe(bool strip) {
1706 char script[2048];
1707 gitenv_probe_script(script, sizeof(script));
1708 const char *argv[] = {"/bin/sh", "-c", script, NULL};
1709 cbm_proc_opts_t opts = {.bin = "/bin/sh", .argv = argv, .strip_git_repo_env = strip};
1710 cbm_proc_result_t r;
1711 if (cbm_subprocess_run(&opts, &r) != 0) {
1712 return -1;
1713 }
1714 return r.exit_code;
1715}
1716#endif
1717
1718TEST(subprocess_strip_git_repo_env_is_per_child) {

Callers 1

test_subprocess.cFile · 0.85

Calls 2

gitenv_probe_scriptFunction · 0.85
cbm_subprocess_runFunction · 0.85

Tested by

no test coverage detected