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

Re: bug: `git pull --rebase` breaks in the presence of pushurls

From
PWPhillip Wood <phillip.wood123@gmail.com>
Date
Dec 9, 2025, 16:03 UTC
Message-ID
<e4ac43f7-f42d-4353-959b-7ab91890b7ea@gmail.com>
In-Reply-To
<67bcbcce-96cd-4bf9-826b-e52b3e09a5d5@app.fastmail.com>
On 09/12/2025 01:48, Kartik Agaram wrote:
> Should `git push` perhaps only update refs/remotes/origin/master if push to all pushurls succeeds (with the same result)? It seems like that would fix this issue. Does it not work in other scenarios?

While that would help in your example, I don't think that helps in general as there is no guarantee that any of the push urls refer to the same server as the pull url. If you set a single push url that pushes to mirror in your example then "git pull --rebase" still drops the local commit. I'm a bit confused by remote.pushDefault as if I set that to a url rather than a remote then it does not update any remote tracking refs. I had assumed it would behave the same as remote.<remote>.pushurl.

Thanks
Phillip
Previous: Kartik AgaramNext: Phillip Wood
Message 7 of 13 in “bug: `git pull --rebase` breaks in the presence of pushurls”
  1. Kartik AgaramDec 7, 2025
  2. Phillip WoodDec 8, 2025
  3. Phillip WoodDec 8, 2025
  4. Kartik AgaramDec 8, 2025
  5. Junio C HamanoDec 8, 2025
  6. Kartik AgaramDec 9, 2025
  7. Phillip WoodDec 9, 2025
  8. Phillip WoodDec 10, 2025
  9. Junio C HamanoDec 11, 2025
  10. K JayatheerthDec 11, 2025
  11. Phillip WoodDec 11, 2025
  12. Phillip WoodDec 11, 2025
  13. Phillip WoodDec 11, 2025

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.