fix(test): Windows CI — use double quotes in git commit message (#2252)

The symlink test used single quotes in a commit message
(`-m 'add gitignore'`) inside a `&&`-chained shell command. On Windows,
`cmd.exe` doesn't treat single quotes as string delimiters, so git
received a mangled pathspec `gitignore'`. Split into two separate `run()`
calls with double-quoted commit message, matching every other test in
the file.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
TÂCHES 2026-03-23 11:49:50 -06:00 committed by GitHub
parent 953598524d
commit 012f1cf06a

View file

@ -1431,7 +1431,8 @@ async function main(): Promise<void> {
// .gitignore blocks .gsd (as ensureGitignore would do for symlink projects)
writeFileSync(join(repo, ".gitignore"), ".gsd\n");
run("git add .gitignore && git commit -m 'add gitignore'", repo);
run('git add .gitignore', repo);
run('git commit -m "add gitignore"', repo);
// Simulate new milestone artifacts created during execution
writeFileSync(join(externalGsd, "milestones", "M009", "M009-SUMMARY.md"), "# M009 Summary");