From: Junio C Hamano <hidden> Date: 2016-06-15 22:50:17
Certain things do want a real user sitting at the terminal (or GUI) even
when the standard streams are connected elsewhere, and password input
is one of the obvious things that would explicitly want to read from the
tty.
Perhaps driving whatever script you are writing via "expect" would work?