Commit 36613b54 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-git-fetch: use correct remote

parent 01a1eae9
......@@ -127,7 +127,7 @@ Then show the status buffer for the new repository."
(defun magit-fetch-from-pushremote (args)
"Fetch from the push-remote of the current branch."
(interactive (list (magit-fetch-arguments)))
(--if-let (magit-get-remote)
(--if-let (magit-get-push-remote)
(magit-git-fetch it args)
(--if-let (magit-get-current-branch)
(user-error "No push-remote is configured for %s" it)
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