branch: elpa/magit
commit bfc5ff4b6b0768d8dc0b53eef7eeb8ccbb1b0123
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-process-password-prompt-regexps: Split out a non-host regexp
---
 lisp/magit-process.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-process.el b/lisp/magit-process.el
index 55570e8949a..ea6bf6eacf2 100644
--- a/lisp/magit-process.el
+++ b/lisp/magit-process.el
@@ -160,9 +160,11 @@ itself from the hook, to avoid further futile attempts."
   ;; See also history in test `magit-process:password-prompt-regexps'.
   '(;; * CLI-prompt for passphrase for key:
     "^\\(Enter \\)?[Pp]assphrase\\( for \\(RSA \\)?key '.*'\\)?: ?$"
+    ;; * Password for something other than a host:
+    "^\\(\\(Please e\\|E\\)nter \\(the \\)?p\\|P\\)assword: ?$"
     ;; * Password for [user@]host (which we put in match group 99):
-    "^\\(Enter \\)?[Pp]assword\\( for \
-[\"']?\\(https?://\\)?\\(?99:[^\"']+\\)[\"']?\\)?: ?$"
+    "^\\(Enter \\)?[Pp]assword for \
+[\"']?\\(https?://\\)?\\(?99:[^\"']+\\)[\"']?: ?$"
     "^(\\(?1:[^) ]+\\)) Password for \\(?99:\\1\\): ?$" ;#4992
     "^\\(?99:[^']+\\)\\('s\\)? password: ?$"
     ;; * Token for git-credential-manager-core (#4318):

Reply via email to