parent
82d9943643
commit
5744d3ec98
1 changed files with 3 additions and 2 deletions
5
magit.el
5
magit.el
|
@ -3037,11 +3037,12 @@ typing and automatically refreshes the status buffer."
|
||||||
(not branch-remote))
|
(not branch-remote))
|
||||||
(magit-read-remote (format "Push %s to" branch)
|
(magit-read-remote (format "Push %s to" branch)
|
||||||
branch-remote)
|
branch-remote)
|
||||||
branch-remote)))
|
branch-remote))
|
||||||
|
(ref-branch (magit-get "branch" branch "merge")))
|
||||||
(if (and (not branch-remote)
|
(if (and (not branch-remote)
|
||||||
(not current-prefix-arg))
|
(not current-prefix-arg))
|
||||||
(magit-set push-remote "branch" branch "remote"))
|
(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
|
;;; Log edit mode
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue