aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-process.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-01-25 12:32:52 +0100
committerJonas Bernoulli <jonas@bernoul.li>2025-01-25 12:32:52 +0100
commitbfc5ff4b6b0768d8dc0b53eef7eeb8ccbb1b0123 (patch)
treec2f3d3390cac7f99b6da728aafc54e5c58accd9f /lisp/magit-process.el
parent4e4690968a6239746fc8e5f97140e40f48d1bd58 (diff)
magit-process-password-prompt-regexps: Split out a non-host regexp
Diffstat (limited to 'lisp/magit-process.el')
-rw-r--r--lisp/magit-process.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/magit-process.el b/lisp/magit-process.el
index 55570e8..ea6bf6e 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):