Run /build per-commit checks without inherited GIT_DIR
CI / checks (pull_request) Successful in 1m6s

git rebase --exec exports GIT_DIR, so tests calling git wrote into the
repo. Wrap the check command with env -u.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
torbenandClaude Sonnet 5.5 committed 2026-12-05 07:15:13 +01:00
1 parent 4bcb1d6596
commit 115d3fb734
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ Der Bericht ist nur ein Hinweis, maßgeblich sind Diff und Tests.
## 4. Gesamtprüfung
1. History glätten: Fixups einarbeiten (`GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash origin/main`). Jeder Commit grün (`git rebase origin/main --exec '<checks>'`).
1. History glätten: Fixups einarbeiten (`GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash origin/main`). Jeder Commit grün (`git rebase origin/main --exec 'env -u GIT_DIR -u GIT_WORK_TREE -u GIT_INDEX_FILE sh -c "<checks>"'`). `rebase --exec` setzt `GIT_DIR`; ohne `env -u` schreiben Tests, die git aufrufen, ins Repo. `<checks>` ohne doppelte Anführungszeichen, `$` und Backticks; sonst die Checks in ein Skript im Scratchpad legen und `sh <skript>` aufrufen.
2. Volle Checks und Prüfbefehl aus dem Issue.
3. Wurde ein Schritt-Prompt geändert: Agent `eval-runner`.
4. `git diff origin/main...HEAD > <scratchpad>/review.diff`, dann Agent `reviewer` mit Issue-Text und Diff-Pfad. Befunde beheben.