http getpass function in msysgit
- From
Frank Li <lznuaa@gmail.com>
- Date
- Feb 3, 2010, 03:18 UTC
- Message-ID
- <1976ea661002021918m19d9b37fx1872557d3c810e3a@mail.gmail.com>
ALL:
getpass at mingw.c is direct read character with function _getch().
GUI application, such tortoisegit will halt when http need
password input because gui don't know git wait for inputing passwords. To resolve this problem, I have two options.
Options 1:
Check if terminal is exist, if exist, using old
method. Otherwise launch internal password dialog. Options 2:
like openSSH, Check if terminal is not exist and
environment HTTP_ASKPASS exist, if true, run application which
HTTP_ASKPASS point, otherwise using old ways.Which one do you prefer, I can implement it.
best regards Frank Li