From: John Clemens <clemej@gmail.com>
To: weigelt@metux.de, git@vger.kernel.org
Subject: Re: mirroring and development with three levels of repositories?
Date: Tue, 28 Sep 2010 21:58:46 -0400 [thread overview]
Message-ID: <AANLkTimg9NKbL033Et9CgKw_KUZ97oDSCy2Wh7mz2p5E@mail.gmail.com> (raw)
In-Reply-To: <20100928184116.GA27401@nibiru.local>
Wait. I just set up some dummy repositories in a working directory
that mirror what we're trying to do, and it all worked. I created a
dummy "upstream" repo with some branches, then a local mirror repo
with 'git clone --mirror'. I'm able to check out from the local
mirror, add "local" branches and push them to the mirror repo, and
able to then commit to those "local" branches, no problem.
Since it all seems to work locally, I suspect a problem with our
webdav git server. I'll check that out tomorrow. Thanks for the help
and sorry for the noise.
john.c
On Tue, Sep 28, 2010 at 2:41 PM, Enrico Weigelt <weigelt@metux.de> wrote:
> * John Clemens <clemej@gmail.com> wrote:
>> > [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
> ----------------------------------------------------------------------
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
John Clemens <clemej@gmail.com>
prev parent reply other threads:[~2010-09-29 1:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 17:25 mirroring and development with three levels of repositories? John Clemens
2010-09-28 17:37 ` Enrico Weigelt
2010-09-28 18:27 ` John Clemens
2010-09-28 18:41 ` Enrico Weigelt
2010-09-29 1:58 ` John Clemens [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimg9NKbL033Et9CgKw_KUZ97oDSCy2Wh7mz2p5E@mail.gmail.com \
--to=clemej@gmail.com \
--cc=git@vger.kernel.org \
--cc=weigelt@metux.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).