Properly handle pushing a branch without a remote.
Before, this did "git push remote branch-name:nil". Now it does "git push remote branch-name". Git automatically sets up the remote.
This commit is contained in:
parent
5744d3ec98
commit
9b195b61e9
1 changed files with 4 additions and 1 deletions
5
magit.el
5
magit.el
|
@ -3042,7 +3042,10 @@ typing and automatically refreshes the status buffer."
|
|||
(if (and (not branch-remote)
|
||||
(not current-prefix-arg))
|
||||
(magit-set push-remote "branch" branch "remote"))
|
||||
(magit-run-git-async "push" "-v" push-remote (format "%s:%s" branch ref-branch))))
|
||||
(magit-run-git-async "push" "-v" push-remote
|
||||
(if ref-branch
|
||||
(format "%s:%s" branch ref-branch)
|
||||
branch))))
|
||||
|
||||
;;; Log edit mode
|
||||
|
||||
|
|
Loading…
Reference in a new issue