Commit 68d847bd authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-push-current-to-pushremote: Avoid unnecessary work

parent f3f13b96
......@@ -739,8 +739,7 @@ the push-remote can be changed before pushed to it."
(setf (magit-get
(if (eq magit-push-current-set-remote-if-missing 'default)
"remote.pushDefault"
(format "branch.%s.pushRemote"
(magit-get-current-branch))))
(format "branch.%s.pushRemote" it)))
push-remote))
(-if-let (remote (magit-get-push-remote it))
(if (member remote (magit-list-remotes))
......
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