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

Re: Git fast-import : Warning duplicated ref: refs/remotes/origin/master

From
JNJérémie NIKAES <jeremie.nikaes@gmail.com>
Date
May 30, 2011, 20:32 UTC
Message-ID
<BANLkTi=+v0Jt2+xgxy=qV+BT7pOUMpoMtw@mail.gmail.com>
In-Reply-To
<20110530201351.GB14427@elie>
> Matthieu Moy wrote:
>> Jonathan Nieder <jrnieder@gmail.com> writes:
Show 15 quoted lines
>> If so, I don't understand why the distinction between 1) and 2) is
>> necessary, and why not to fetch directly into refs/remotes/origin/. IOW,
>> in which case is refs/remotes/origin/master different from
>> refs/mediawiki/origin/master for example?
>
> That's a good question.  One answer is that fetching to elsewhere
> allows the transport machinery to take care of rejecting non-fast-forward
> fetches and pretty-printing the ref update information:
>
>  From mediawiki::http://localhost/mediawiki
>    479ee21..accd2c1  master     -> origin/master
>
> I think in the long term, importing to no ref at all as Sverre
> suggested and teaching the transport-helper to do the ref update would
> make more sense.

Well yes that would indeed make more sense. It feels weird to have to do it like this. Anyways, thanks a lot again for your help, a rfc patch should come relatively quickly with the project in its current state.

Regards,
-- 
Jérémie Nikaes
Previous: Jonathan NiederNext: Sverre Rabbelier
Message 14 of 15 in “Git fast-import : Warning duplicated ref: refs/remotes/origin/master”
  1. Jérémie NIKAESMay 29, 2011
  2. Jonathan NiederMay 29, 2011
  3. Jérémie NIKAESMay 30, 2011
  4. Jonathan NiederMay 30, 2011
  5. Jérémie NIKAESMay 30, 2011
  6. Documentation: do not misinterpret refspecs as bold text (Re: Git fast-import : Warning duplicated ref: refs/remotes/origin/master)Jonathan Nieder, May 30, 2011
  7. remote helpers: best practices for using the "refspec" capabilityJonathan Nieder, May 30, 2011
  8. Daniel BarkalowMay 30, 2011
  9. Sverre RabbelierMay 30, 2011
  10. Jonathan NiederMay 30, 2011
  11. Matthieu MoyMay 30, 2011
  12. Jérémie NIKAESMay 30, 2011
  13. Jonathan NiederMay 30, 2011
  14. Jérémie NIKAESMay 30, 2011
  15. Sverre RabbelierMay 30, 2011

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.