21 lines · 1002 B · TypeScript
RawDownload
// Pins git behaviour for every repository the suite creates, ahead of the// host's ~/.gitconfig. Git for Windows installs with core.autocrlf=true,// which checks committed LF files out as CRLF and breaks every byte-exact// content assertion; a signing key or a non-default init branch on the// developer's machine breaks fixtures the same way. Set as environment so// each git child the driver spawns sees it without touching the fixtures.const entries: ReadonlyArray<readonly [key: string, value: string]> = [  ["core.autocrlf", "false"],  ["core.filemode", "false"],  ["core.longpaths", "true"],  ["commit.gpgsign", "false"],  ["tag.gpgsign", "false"],  ["init.defaultBranch", "main"],]; const existing = Number(process.env.GIT_CONFIG_COUNT ?? "0");process.env.GIT_CONFIG_COUNT = String(existing + entries.length);entries.forEach(([key, value], index) => {  process.env[`GIT_CONFIG_KEY_${existing + index}`] = key;  process.env[`GIT_CONFIG_VALUE_${existing + index}`] = value;});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t