We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3343a67 + 23fd91e commit d6c16ffCopy full SHA for d6c16ff
credential.c
@@ -132,7 +132,9 @@ static void credential_getpass(struct credential *c)
132
{
133
if (!c->username)
134
c->username = credential_ask_one("Username", c,
135
- PROMPT_ASKPASS|PROMPT_ECHO);
+ (getenv("GIT_ASKPASS") ?
136
+ PROMPT_ASKPASS : 0) |
137
+ PROMPT_ECHO);
138
if (!c->password)
139
c->password = credential_ask_one("Password", c,
140
PROMPT_ASKPASS);
0 commit comments