Commit 01a1eae9 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-{fetch,pull}-from-{pushremote,upstream}: show correct error

parent 61b37776
......@@ -129,7 +129,7 @@ Then show the status buffer for the new repository."
(interactive (list (magit-fetch-arguments)))
(--if-let (magit-get-remote)
(magit-git-fetch it args)
(-if-let (magit-get-current-branch)
(--if-let (magit-get-current-branch)
(user-error "No push-remote is configured for %s" it)
(user-error "No branch is checked out"))))
......@@ -139,7 +139,7 @@ Then show the status buffer for the new repository."
(interactive (list (magit-fetch-arguments)))
(--if-let (magit-get-remote)
(magit-git-fetch it args)
(-if-let (magit-get-current-branch)
(--if-let (magit-get-current-branch)
(user-error "No upstream is configured for %s" it)
(user-error "No branch is checked out"))))
......@@ -208,7 +208,7 @@ Then show the status buffer for the new repository."
(interactive (list (magit-pull-arguments)))
(--if-let (magit-get-tracked-branch)
(magit-git-pull it args)
(-if-let (magit-get-current-branch)
(--if-let (magit-get-current-branch)
(user-error "No upstream is configured for %s" it)
(user-error "No branch is checked out"))))
......
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