Commit 4f565039 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-remote-add: fix typo in name of Git variable

parent f84879f6
......@@ -121,7 +121,7 @@ variable isn't already set."
(interactive (list (magit-read-string-ns "Remote name")
(magit-read-url "Remote url")))
(if (pcase (list magit-remote-add-set-remote.pushDefault
(magit-get "remote.defaultPush"))
(magit-get "remote.pushDefault"))
(`(,(pred stringp) ,_) t)
((or `(ask ,_) `(ask-if-unset nil))
(y-or-n-p (format "Set `remote.pushDefault' to \"%s\"? " remote))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment