Have magit-push use magit-get-remote.
This commit is contained in:
parent
db32004209
commit
c2516ed37e
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -3039,7 +3039,7 @@ typing and automatically refreshes the status buffer."
|
|||
(interactive)
|
||||
(let* ((branch (or (magit-get-current-branch)
|
||||
(error "Don't push a detached head. That's gross")))
|
||||
(branch-remote (magit-get "branch" branch "remote"))
|
||||
(branch-remote (magit-get-remote branch))
|
||||
(push-remote (if (or current-prefix-arg
|
||||
(not branch-remote))
|
||||
(magit-read-remote (format "Push %s to" branch)
|
||||
|
|
Loading…
Add table
Reference in a new issue