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

Re: mirroring and development with three levels of repositories?

From
EWEnrico Weigelt <weigelt@metux.de>
Date
Sep 28, 2010, 18:41 UTC
Message-ID
<20100928184116.GA27401@nibiru.local>
In-Reply-To
<AANLkTin2UPUPn5Sr=7dqT5bxFB7a-BYFzJhGV74r6taF@mail.gmail.com>
* John Clemens <clemej@gmail.com> wrote:
Show 17 quoted lines
> > [remote "origin"]
> >    url = ...
> >    fetch = +refs/heads/*:refs/heads/origin/*
> >    fetch = +refs/tags/*:refs/tags/origin/*
> 
> Hmm.. I do actually see the branches on dev machine.  When I clone from our
> local mirror, everything works fine UNTIL I create a new branch and push it
> to our local mirror.  From that moment on, all new clones fail (more precisely,
> they do download all the blobs, but the refs only point to the newly created
> branches, and HEAD is messed up.
> 
> config on the local mirror is this:
> 
> [remote "origin"]
>         fetch = +refs/*:refs/*
>         mirror = true
>         url = xxx
Ah, maybe it corrupts refs/HEAD somehow ? What does it point to ?

Perhaps you better don't fetch the whole refs/* but refs/heads/* and refs/tags/* namespaces separately (as described above).

> On the local mirror, HEAD is:
> ref: refs/heads/xxx/stable

Does that ref exist there ? What does it tell on the upstream (big central) repo ?

cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
Previous: John ClemensNext: John Clemens
Message 4 of 5 in “mirroring and development with three levels of repositories?”
  1. John ClemensSep 28, 2010
  2. Enrico WeigeltSep 28, 2010
  3. John ClemensSep 28, 2010
  4. Enrico WeigeltSep 28, 2010
  5. John ClemensSep 29, 2010

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.