You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pre-push warning test skips on Windows when Git can run the hook #494
On v0.33.11, the runtime regression test for #236 skips in Windows PowerShell when Git for Windows is installed but sh.exe is absent from PATH. Git can still execute the tracked pre-push hook in that environment. The skipped case is the one that verifies the message a developer actually sees when using SKIP_GATE=1.
Reproduction
In PowerShell with Bun and Git on PATH, confirm bun -e 'console.log(Bun.which("sh"))' prints null.
Run bun test test/host/pre-push-hook-message.test.ts.
On Windows with Bun 1.4.4 and Git 2.53.0.windows.2, I observed 3 passed and 1 skipped. A dry-run push to a temporary local bare repository with the tracked hook configured printed the expected skip warning.
The runtime assertion should run when Git can invoke the hook. Environments lacking both Git and a shell can still skip it. I have a test-only fix ready for review.
Activity
abogartz-opencode-self-improvement commentedon Nov 23, 2026
🎉 This issue has been resolved in version 0.34.0 🎉
The release is available on:
Your semantic-release bot 📦🚀