Commit 26cda52a authored by Kyle Meyer's avatar Kyle Meyer

magit-set-upstream-branch: Split the upstream

ddda6088 (magit-set-upstream-branch: New function, 2018-10-21) dropped
a magit-split-branch-name call, but all magit-set-upstream-branch
callers pass in a string.

Fixes #3626.
parent eb465aca
......@@ -1190,7 +1190,7 @@ The amount of time spent searching is limited by
(defun magit-set-upstream-branch (branch upstream)
(if upstream
(pcase-let ((`(,remote . ,merge) upstream))
(pcase-let ((`(,remote . ,merge) (magit-split-branch-name upstream)))
(setf (magit-get (format "branch.%s.remote" branch)) remote)
(setf (magit-get (format "branch.%s.merge" branch))
(concat "refs/heads/" merge)))
......
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