Make magit explicitly tell the branch where to push.

Closes #23.
This commit is contained in:
Sean Bryant 2010-06-16 09:30:54 -04:00 committed by Phil Jackson
parent 82d9943643
commit 5744d3ec98

View file

@ -3037,11 +3037,12 @@ typing and automatically refreshes the status buffer."
(not branch-remote))
(magit-read-remote (format "Push %s to" branch)
branch-remote)
branch-remote)))
branch-remote))
(ref-branch (magit-get "branch" branch "merge")))
(if (and (not branch-remote)
(not current-prefix-arg))
(magit-set push-remote "branch" branch "remote"))
(magit-run-git-async "push" "-v" push-remote branch)))
(magit-run-git-async "push" "-v" push-remote (format "%s:%s" branch ref-branch))))
;;; Log edit mode