don't ask for master pw if noinput option is active

Sat, 15 Sep 2018 11:58:17 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 15 Sep 2018 11:58:17 +0200
changeset 471
d8e883bd1fd8
parent 470
6bf798ad3aec
child 472
08d2d1263429

don't ask for master pw if noinput option is active

dav/main.c file | annotate | diff | comparison | revisions
--- a/dav/main.c	Sat Sep 15 11:56:36 2018 +0200
+++ b/dav/main.c	Sat Sep 15 11:58:17 2018 +0200
@@ -407,7 +407,7 @@
 static DavSession* connect_to_repo(Repository *repo, CmdArgs *a) {
     char *user = repo->user;
     char *password = repo->password;
-    if(repo->stored_user) {
+    if(repo->stored_user && !cmd_getoption(a, "noinput")) {
         PwdStore *pstore = get_pwdstore();
         if(pstore) {
             char *ps_password = util_password_input("Unlock password store: ");

mercurial