Run "git -C " with a neutral identity so the test * needs no global git config and works under cmd.exe on Windows. * Returns the git exit status. */
| 58 | * needs no global git config and works under cmd.exe on Windows. |
| 59 | * Returns the git exit status. */ |
| 60 | static int r520_git(const char *dir, const char *args) { |
| 61 | char cmd[1024]; |
| 62 | snprintf(cmd, sizeof(cmd), |
| 63 | "git -C \"%s\" -c user.name=t -c user.email=t@t.io " |
| 64 | "-c init.defaultBranch=main -c commit.gpgsign=false %s", |
| 65 | dir, args); |
| 66 | return system(cmd); |
| 67 | } |
| 68 | |
| 69 | /* ── Test ──────────────────────────────────────────────────────── */ |
| 70 |