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 ba99f9b + a284435 commit c7f4d21Copy full SHA for c7f4d21
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