When pushing a new branch, manually add merge configuration.
This commit is contained in:
parent
9b195b61e9
commit
a5b72daa02
1 changed files with 6 additions and 1 deletions
7
magit.el
7
magit.el
|
@ -3045,7 +3045,12 @@ typing and automatically refreshes the status buffer."
|
|||
(magit-run-git-async "push" "-v" push-remote
|
||||
(if ref-branch
|
||||
(format "%s:%s" branch ref-branch)
|
||||
branch))))
|
||||
branch))
|
||||
;; Although git will automatically set up the remote,
|
||||
;; it doesn't set up the branch to merge (at least as of Git 1.6.6.1),
|
||||
;; so we have to do that manually.
|
||||
(unless ref-branch
|
||||
(magit-set (concat "refs/heads/" branch) "branch" branch "merge"))))
|
||||
|
||||
;;; Log edit mode
|
||||
|
||||
|
|
Loading…
Reference in a new issue