@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 16 lines 674 Bytes
Raw
1 // Override inherited autocrlf, signing and init-branch settings through env so every git child gets stable fixtures.
2 const entries: ReadonlyArray<readonly [key: string, value: string]> = [
3 ["core.autocrlf", "false"],
4 ["core.filemode", "false"],
5 ["core.longpaths", "true"],
6 ["commit.gpgsign", "false"],
7 ["tag.gpgsign", "false"],
8 ["init.defaultBranch", "main"],
9 ];
10
11 const existing = Number(process.env.GIT_CONFIG_COUNT ?? "0");
12 process.env.GIT_CONFIG_COUNT = String(existing + entries.length);
13 entries.forEach(([key, value], index) => {
14 process.env[`GIT_CONFIG_KEY_${existing + index}`] = key;
15 process.env[`GIT_CONFIG_VALUE_${existing + index}`] = value;
16 });