credential: use git_prompt instead of git_getpass
commitce77aa4813c8a3980283c0a1e760f51f3a405154
authorJeff King <peff@peff.net>
Sat, 10 Dec 2011 10:41:23 +0000 (10 05:41 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Dec 2011 00:09:39 +0000 (12 16:09 -0800)
tree96568c1061bcc651bcd7a6a03f281b2cca72882e
parenta50902590e703878e888fd8a33ec5a22d5347481
credential: use git_prompt instead of git_getpass

We use git_getpass to retrieve the username and password
from the terminal. However, git_getpass will not echo the
username as the user types. We can fix this by using the
more generic git_prompt, which underlies git_getpass but
lets us specify an "echo" option.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
credential.c