You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I believe I have a potential bug report or just a general question.
I'm trying to have a pre-commit hook that is interactive, here is a basic example:
#!/bin/sh
exec </dev/tty
while read -p "Looks like you are committing directly to master, are you sure you want to continue? (Y/n) " yn; do
case $yn in
[Yy]) break ;;
[Nn])
echo "Good call. Make a new branch."
exit 1
;;
*) echo "Please answer y (yes) or n (no):" && continue ;;
esac
done
exec <&-
Anyways. This script works fine when entered manually to .git/hooks/pre-commit, but does not work correctly when using Komondor. It doesn't display any message, and does not respond to any text:
> ./bin/verify-commit
Please let me know if there's a workaround to this issue.
The text was updated successfully, but these errors were encountered:
Hello, I believe I have a potential bug report or just a general question.
I'm trying to have a
pre-commit
hook that is interactive, here is a basic example:Anyways. This script works fine when entered manually to
.git/hooks/pre-commit
, but does not work correctly when using Komondor. It doesn't display any message, and does not respond to any text:> ./bin/verify-commit
Please let me know if there's a workaround to this issue.
The text was updated successfully, but these errors were encountered: