aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-remote.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2019-03-06 21:55:05 +0100
committerJonas Bernoulli <jonas@bernoul.li>2019-03-06 21:57:08 +0100
commit0ce7fbbc21dd1b362765d16eb451365e6997c136 (patch)
treeffa74750f248d3fa68a2d48d3d074ade407ec4d9 /lisp/magit-remote.el
parent5c7edc1b10463e5dd69a1017ef5dab104ff85b27 (diff)
magit--{upstream,pushbranch}-suffix-predicate: Bugfix
The definitions were flipped.
Diffstat (limited to 'lisp/magit-remote.el')
-rw-r--r--lisp/magit-remote.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/magit-remote.el b/lisp/magit-remote.el
index b9f15c1..02d3831 100644
--- a/lisp/magit-remote.el
+++ b/lisp/magit-remote.el
@@ -366,7 +366,7 @@ Delete the symbolic-ref \"refs/remotes/<remote>/HEAD\"."
action)))))
(defun magit--pushbranch-suffix-predicate ()
- (or (magit-get-upstream-branch)
+ (or (magit-get-push-branch)
magit-remote-set-if-missing))
(defun magit--pushbranch-suffix-description (&optional pushp)
@@ -410,7 +410,7 @@ Delete the symbolic-ref \"refs/remotes/<remote>/HEAD\"."
nil (format "Set upstream and %s there" action))))
(defun magit--upstream-suffix-predicate ()
- (or (magit-get-push-branch)
+ (or (magit-get-upstream-branch)
magit-remote-set-if-missing))
(defun magit--upstream-suffix-description (&optional pushp)