-
-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use default shell for git-hooks instead of bash #2317
Comments
zsh is the default shell on macOS these days. |
My attempt to fix this issue: #2343 |
@extrawurst is it possible to make a new release just for git2-hooks? Thanks. |
On *nix it should be possible to execute the git-hooks directly. That's how git does it I think.
Wouldn't it be better to make sure to run gitui from a login-shell?
Nothing guarantees that the login shell behaves like sh so it shouldn't be assumed that it does. #2483 tries to improve the git-hooks behaviour, but it would be bad if it broke existing workflows. |
Would it be possible to run the hooks with the shell specified by
$SHELL
instead of defaulting to bash here? If I understand correctly, it matters when running from a non-login (e.g. gui application) shell since bash won't inherit desired environment variables.https://github.com/extrawurst/gitui/blob/4ef633a75a3581936d0da9aade7af8ed7aad98ab/git2-hooks/src/hookspath.rs#L116-L117
The text was updated successfully, but these errors were encountered: