Repository navigation
pr-git-2466/HaraldNordgren/at-push-simple-triangular-v2
tagged this
31 Oct 08:04
With push.default=simple and remote.pushDefault pointing at a fork, git push
pushes the branch to the fork, but @{push} fails with "cannot resolve
'simple' push to a single destination".
So git status cannot compare the branch with where it was pushed. Make
@{push} resolve to where git push goes.
Changes in v2:
* Moved the "simple" @{push} code out of branch_get_push_1() into its own
function in a new preparatory commit.
Harald Nordgren (2):
remote: move "simple" @{push} resolution into a helper
remote: resolve "simple" @{push} when pushing to another remote
remote.c | 43 +++++++++++++++++++++++----------------
t/for-each-ref-tests.sh | 4 +++-
t/t1514-rev-parse-push.sh | 13 +++++++++++-
3 files changed, 41 insertions(+), 19 deletions(-)
base-commit: b9e5cff1803ab24582201ef059516eb16014b9d9
Submitted-As: https://lore.kernel.org/git/pull.2466.v2.git.git.1793433841.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.2466.git.git.1793105039624.gitgitgadget@gmail.com