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 c23fc4d + 324eee8 commit d2d9a0aCopy full SHA for d2d9a0a
credential.c
@@ -135,7 +135,9 @@ static void credential_getpass(struct credential *c)
135
{
136
if (!c->username)
137
c->username = credential_ask_one("Username", c,
138
- PROMPT_ASKPASS|PROMPT_ECHO);
+ (getenv("GIT_ASKPASS") ?
139
+ PROMPT_ASKPASS : 0) |
140
+ PROMPT_ECHO);
141
if (!c->password)
142
c->password = credential_ask_one("Password", c,
143
PROMPT_ASKPASS);
0 commit comments