Repository navigation
Make existing hook-failure diagnostics independent of shell-environment loading - #23011
Closed
molnarriso wants to merge 1 commit into
Closed
molnarriso wants to merge 1 commit into
molnarriso wants to merge 1 commit into
Conversation
Contributor
|
Thanks for your pull request! Unfortunately, it doesn't meet the requirements for review:
Please update your PR to address the above. This PR will be automatically closed in 7 days if these requirements are not met. Full contribution requirements
|
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 #23012
Description
GitHub Desktop already has hook-specific failure reporting, but it is currently gated by “Load Git hook environment variables from shell.” Disabling that preference bypasses the entire hook proxy, including the existing failure callbacks and UI.
This PR makes that existing reporting available independently of shell loading. The preference controls where the hook’s environment comes from, rather than whether Desktop identifies a failing hook. No additional reporting mechanism or UI is introduced.
pre-pushinterception for pushes using--no-verify.This improves error attribution; it does not change interpreter selection or fix underlying Bash/WSL failures.
Validation on Windows:
Screenshots
No UI components changed. This enables the existing hook-failure dialog when shell-environment loading is disabled.
Release notes
Notes: Git hook failures are now identified even when loading environment variables from the shell is disabled.