Skip to content

Pre-push warning test skips on Windows when Git can run the hook #494

Closed

Description

@WhollyMindless

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

  1. In PowerShell with Bun and Git on PATH, confirm bun -e 'console.log(Bun.which("sh"))' prints null.
  2. 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

  1. abogartz-opencode-self-improvement commented on Nov 23, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.34.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions