Repository navigation
Run the pre-push warning test through Git when sh is off PATH - #495
Merged
abogartz merged 1 commit intoNov 22, 2026
Merged
Conversation
abogartz
approved these changes
Nov 22, 2026
|
🎉 This PR is included in version 0.34.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #494.
The runtime test for the pre-push warning used to skip whenever Bun could not find
shon PATH. In PowerShell, Git for Windows can still run the hook in that configuration.This updates the test to initialize a temporary Git repository when
shis missing and invoke the tracked hook withgit -c core.hooksPath=… hook run pre-push. The hook path applies only to that invocation. The test checks the same exit code and user-visible warning with either runner, reading stderr when Git forwards the hook output there. The change is confined to the test file.Local verification on Windows with Bun 1.4.4 and Git 2.53.0.windows.2, using
bun test test/host/pre-push-hook-message.test.ts:Typecheck and Biome passed. A dry-run push to a local bare repository also printed the expected warning with
SKIP_GATE=1.