Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
imap-send: don't check return value of git_getpass
author
Jeff King
<peff@peff.net>
Sat, 10 Dec 2011 10:40:49 +0000
(
05:40
-0500)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 13 Dec 2011 00:09:38 +0000
(16:09 -0800)
git_getpass will always die() if we weren't able to get
input, so there's no point looking for NULL.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
50d0158
)
diff --git
a/imap-send.c
b/imap-send.c
index 4c1e8971137d41960f3b8eced63d96f41dc603a1..227253ea19e97e4e5d2d61f8ace48865729344c6 100644
(file)
--- a/
imap-send.c
+++ b/
imap-send.c
@@
-1213,10
+1213,6
@@
static struct store *imap_open_store(struct imap_server_conf *srvc)
strbuf_addf(&prompt, "Password (%s@%s): ", srvc->user, srvc->host);
arg = git_getpass(prompt.buf);
strbuf_release(&prompt);
- if (!arg) {
- perror("getpass");
- exit(1);
- }
if (!*arg) {
fprintf(stderr, "Skipping account %s@%s, no password\n", srvc->user, srvc->host);
goto bail;