[pull-request] Improve push target detection for `push.default=upstream`
When `git config push.default` is "upstream" or "tracking", but the current branch is pushed to a remote without having upstream configuration set up (for example, via `git push <REMOTE> HEAD` without `-u`), this change makes it so that the remote tracking branch (the push target) is still discovered via the same mechanism as if `push.default` wasn't set (i.e. iterating through all the remotes).
Showing
想要评论请 注册 或 登录