Run a git command inside dir, return 0 on success. */
| 66 | #ifndef _WIN32 |
| 67 | /* Run a git command inside dir, return 0 on success. */ |
| 68 | static int git_run(const char *dir, const char *args) { |
| 69 | char cmd[1024]; |
| 70 | snprintf(cmd, sizeof(cmd), "git -C \"%s\" %s >/dev/null 2>&1", dir, args); |
| 71 | return system(cmd); |
| 72 | } |
| 73 | |
| 74 | /* Create a minimal git repo at dir (init + empty commit so HEAD exists). */ |
| 75 | static int make_git_repo(const char *dir) { |
no outgoing calls
no test coverage detected