Commit c34d1a69 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-push-current-to-upstream: better completion default

parent 6607d1b9
......@@ -436,9 +436,10 @@ upstream can be changed before pushed to it."
(interactive
(list (magit-push-arguments)
(and (magit--push-current-set-upstream-p current-prefix-arg)
(magit-read-remote-branch
(format "Set upstream of %s and push there"
(magit-get-current-branch))))))
(let ((branch (magit-get-current-branch)))
(magit-read-remote-branch
(format "Set upstream of %s and push there" branch)
nil nil branch)))))
(--if-let (magit-get-current-branch)
(progn
(when upstream
......
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