git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 0/2] remote: resolve "simple" @{push} when pushing to another remote

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 1, 2026, 01:09 UTC
Message-ID
<xmqq5wyh2w8m.fsf@gitster.g>
In-Reply-To
<pull.2466.v2.git.git.1793433841.gitgitgadget@gmail.com>
"Harald Nordgren via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 11 quoted lines
> 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.
Looking good.  Will queue.
Thanks.
Previous: Harald Nordgren via GitGitGadget
Message 9 of 9 in “remote: resolve "simple" @{push} when pushing to another remote”
  1. remote: resolve "simple" @{push} when pushing to another remoteHarald Nordgren via GitGitGadget, Oct 27, 2026
  2. D. Ben KnobleOct 28, 2026
  3. Harald NordgrenOct 29, 2026
  4. Junio C HamanoOct 29, 2026
  5. Harald NordgrenOct 29, 2026
  6. 0/2 remote: resolve "simple" @{push} when pushing to another remoteHarald Nordgren via GitGitGadget, Oct 31, 2026
  7. 1/2 remote: move "simple" @{push} resolution into a helperHarald Nordgren via GitGitGadget, Oct 31, 2026
  8. 2/2 remote: resolve "simple" @{push} when pushing to another remoteHarald Nordgren via GitGitGadget, Oct 31, 2026
  9. Junio C HamanoNov 1, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.