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

Re: git remote update -> rejected

From
Paolo Bonzini <bonzini@gnu.org>
Date
Apr 22, 2008, 15:26 UTC
Message-ID
<480E03A9.3040401@gnu.org>
In-Reply-To
<alpine.DEB.1.00.0804221607190.4460@eeepc-johanness>
Johannes Schindelin wrote:
Show 13 quoted lines
> Hi,
> 
> On Tue, 22 Apr 2008, Paolo Bonzini wrote:
> 
>>>> Okay, how about this: take Peff's patch, but add a warning if 
>>>> --mirror is used on a non-bare repository?
>>> Sounds good to me. Indeed, giving a warning is _very_ good idea as 
>>> --mirror is potentially, even likely, destructive with local changes 
>>> and working directory.
>> What about changing --mirror to add a push line instead of a fetch line?
> 
> I would not expect --mirror to add a push line when "git-remote add" 
> without --mirror does not a push line either.

Let me reverse the question. When does it make sense to use "git-remote add --mirror" with the current implementation?

It's not a rhetoric question. I know when it would make sense to have push refspecs on a remote for which you plan to use "git push --mirror" (and in "next", that is the case if you create the remote with "git-remote add --mirror"). But I'm a total newbie for things that do not fit my workflows, so I don't know when it would make sense to pull from that kind of remote.

Paolo
Previous: Johannes SchindelinNext: Paolo Bonzini
Message 21 of 28 in “git remote update -> rejected”
  1. Mike GalbraithApr 22, 2008
  2. Jeff KingApr 22, 2008
  3. Mike GalbraithApr 22, 2008
  4. Jeff KingApr 22, 2008
  5. Johannes SchindelinApr 22, 2008
  6. Jeff KingApr 22, 2008
  7. Johannes SchindelinApr 22, 2008
  8. Jeff KingApr 22, 2008
  9. builtin-remote: resurrect forced updates to tracked branchesJohannes Schindelin, Apr 22, 2008
  10. Junio C HamanoApr 22, 2008
  11. Teemu LikonenApr 22, 2008
  12. Johannes SchindelinApr 22, 2008
  13. Jeff KingApr 22, 2008
  14. Johannes SchindelinApr 22, 2008
  15. Paolo BonziniApr 22, 2008
  16. Teemu LikonenApr 22, 2008
  17. Johannes SchindelinApr 22, 2008
  18. Teemu LikonenApr 22, 2008
  19. Paolo BonziniApr 22, 2008
  20. Johannes SchindelinApr 22, 2008
  21. Paolo BonziniApr 22, 2008
  22. Paolo BonziniApr 22, 2008
  23. Johannes SchindelinApr 22, 2008
  24. Junio C HamanoApr 22, 2008
  25. remote add: disallow --master and --mirror with non-bare repositoriesJohannes Schindelin, Apr 22, 2008
  26. Paolo BonziniApr 22, 2008
  27. Paolo BonziniApr 22, 2008
  28. Johannes SchindelinApr 22, 2008

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.