-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Milestone
Description
Via gitter we got a question about a git commit-msg hook.
These run in an environment with a non-tty stdin, so if you want to query the user, you'd have to read </dev/tty explicitly. See e.g. https://stackoverflow.com/questions/3417896/how-do-i-prompt-the-user-from-within-a-commit-msg-hook.
Only that won't work in fish, because even tho read receives the redirected fd, it'll call reader_readline, and that has hard-coded 0 pretty extensively (down to input_event_queue_t::readb using FD_SET(0, &fdset)).
It would be great if this worked.
Reactions are currently unavailable