Re: Question on git fetch to bare repo
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 9, 2007, 00:22 UTC
- Message-ID
- <Pine.LNX.4.63.0702090119070.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <eqg8fa$ru3$1@sea.gmane.org>
Hi,
[Jakub, you broke the thread. I Cc' Bill, but I cannot join the thread]
On Thu, 8 Feb 2007, Jakub Narebski wrote:
Show 14 quoted lines
> Bill Lear wrote: > > > I have a public bare repo I created yesterday: > > > > % mkdir project && cd project > > % git --bare init-db --shared > > % git --bare fetch git://source/project > > [All seems well] > > _Seems_ well > > % git clone --bare --shared git://source/project project > > is a proper invocation.
No.
init --shared means that the repository is set up such that different users can update branches.
clone --shared means that if the original repository is on the local machine (which it is not in your example), then that is used as an alternate, i.e. the objects are not copied at all, but reused from the other location.
I complained about that ambiguity, but I am probably the guilty person: AFAIR it was me who introduced "init --shared".
Ciao, Dscho