Run a git command inside dir, return 0 on success. */
| 40 | #ifndef _WIN32 |
| 41 | /* Run a git command inside dir, return 0 on success. */ |
| 42 | static int git_run(const char *dir, const char *args) { |
| 43 | char cmd[1024]; |
| 44 | snprintf(cmd, sizeof(cmd), "git -C \"%s\" %s >/dev/null 2>&1", dir, args); |
| 45 | return system(cmd); |
| 46 | } |
| 47 | |
| 48 | /* Create a minimal git repo at dir (init + empty commit so HEAD exists). */ |
| 49 | static int make_git_repo(const char *dir) { |
no outgoing calls
no test coverage detected