diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2022-04-22 18:15:14 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2022-04-22 18:15:14 +0200 |
| commit | a37b2066dd88be92d80cd9221347ed43525e979f (patch) | |
| tree | ac1c91d8eeed37e922b2efcae11cf83847578929 /lisp/magit-remote.el | |
| parent | e9df33bf2862b4222c044bddaf60901279a153b3 (diff) | |
Use pcase's quote upattern
I though that wasn't added until much later but actually this is
supported since Emacs 25.1.
Diffstat (limited to 'lisp/magit-remote.el')
| -rw-r--r-- | lisp/magit-remote.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/magit-remote.el b/lisp/magit-remote.el index 38efe2e..4f70c1a 100644 --- a/lisp/magit-remote.el +++ b/lisp/magit-remote.el @@ -114,7 +114,7 @@ has to be used to view and change remote related variables." (if (pcase (list magit-remote-add-set-remote.pushDefault (magit-get "remote.pushDefault")) (`(,(pred stringp) ,_) t) - ((or `(ask ,_) `(ask-if-unset nil)) + ((or `(ask ,_) '(ask-if-unset nil)) (y-or-n-p (format "Set `remote.pushDefault' to \"%s\"? " remote)))) (progn (magit-call-git "remote" "add" args remote url) (setf (magit-get "remote.pushDefault") remote) |
