From: Chris Packham Date: Thu, 01 Oct 2015 03:42:58 GMT Subject: [BUG?] applypatch-msg hook no-longer thinks stdin is a tty Message-ID: Hi, I have a applypatch-msg hook that implements some policy for acceptable commit messages and reject non-conformant patches. It also is able to prompt me to override it's rejection. The prompting only happens when stdin is a tty (as determined by pythons sys.stdin.isatty()) For example this would reject the patch and cause am stop $ cat bad.patch | git am And this would prompt me to allow the patch and am would proceed if I answer Y $ git am bad.patch Patch message invalid apply (Y/N)? As of git 2.6 this has stopped working and stdin always fails the tty check. Here's a minimal reproduction $ cat >.git/hooks/applypatch-msg <