Skip to content

Commit 758c066

Browse files
committed
fixup! credential: do not mask the username
As per the consensus on the Git mailing list, let'a drop thia. See https://public-inbox.org/git/[email protected] Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 233535e commit 758c066

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

credential.c

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

0 commit comments

Comments
 (0)