Skip to content

Commit 0437d18

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
Merge 'unmask-credentials-username'
This came in via pull request #677 from yaras/fix-git-675 Fixed masking username with asterisks when reading credentials Signed-off-by: Johannes Schindelin <[email protected]>
2 parents e172fc6 + 2947e36 commit 0437d18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

credential.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ static void credential_getpass(struct credential *c)
136136
{
137137
if (!c->username)
138138
c->username = credential_ask_one("Username", c,
139-
PROMPT_ASKPASS|PROMPT_ECHO);
139+
(getenv("GIT_ASKPASS") ?
140+
PROMPT_ASKPASS : 0) |
141+
PROMPT_ECHO);
140142
if (!c->password)
141143
c->password = credential_ask_one("Password", c,
142144
PROMPT_ASKPASS);

0 commit comments

Comments
 (0)