fix(local): shell-quote git args in the auto-patch push and trial-build gate #126

Merged
pat-s merged 1 commit from t3code/fix-git-shell-quoting into main 2026-07-15 15:43:03 +00:00

2026-07-15

fix(local): shell-quote git args in the auto-patch push and trial-build gate
The autonomous --open-pr run failed at `git commit` with
`sh: syntax error: unexpected "("`: R's system2() with captured output runs the
command through /bin/sh, and the commit message `feat(patches): ...` (and the
`^{commit}` / `ref:path` git refs in the trial-build gate) contain shell
metacharacters that were passed unquoted.

shQuote() every git argument in propose-patches.R's git() helper and in
trial-build-registry.R's base-ref reads. Reproduced the failure and verified the
fix against a real git repo (commit with "()" in the message now succeeds; a
`HEAD^{commit}` rev-parse resolves).
2026-07-15 15:03:45 +00:00