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."
(list (magit-push-arguments)
(and (magit--push-current-set-upstream-p current-prefix-arg)
(format "Set upstream of %s and push there"
(let ((branch (magit-get-current-branch)))
(format "Set upstream of %s and push there" branch)
nil nil branch)))))
(--if-let (magit-get-current-branch)
(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