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

Function git_validate_repo_path

src/git/git_context.c:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static bool git_validate_repo_path(const char *repo_path) {
43 if (!cbm_validate_shell_arg(repo_path)) {
44 return false;
45 }
46#ifdef _WIN32
47 for (const char *p = repo_path; *p; p++) {
48 if (*p == '%' || *p == '!' || *p == '^') {
49 return false;
50 }
51 }
52#endif
53 return true;
54}
55
56static int git_capture(const char *repo_path, const char *git_args, char **out) {
57 if (!out) {

Callers 1

git_captureFunction · 0.85

Calls 1

cbm_validate_shell_argFunction · 0.85

Tested by

no test coverage detected