Skip to content
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

Unable to setup environment for pre-commit hook run: unknown switch #847

Open
jerrygar96 opened this issue Apr 10, 2024 · 0 comments
Open

Comments

@jerrygar96
Copy link

Hooks fail when trying to stash changes with message

Unable to setup environment for pre-commit hook run
STDOUT:
STDERR:error: unknown switch `0'
usage: git stash save [-p | --patch] [-S | --staged]...
stash message

in stash_changes in file stash_unstaged_changes.rb changing stash_message to use Time.now.to_i instead of Time.now seems to fix the issue for me.

This issue only presents itself when not committing all changed files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant