From: Mathieu Chouquet-Stringer Date: Thu, 26 Jan 2006 15:11:37 GMT Subject: Re: How to create and keep up to date a naked/bare repository? Message-ID: In-Reply-To: <7v64o7fac1.fsf@assigned-by-dhcp.cox.net> junkio@cox.net (Junio C Hamano) writes: > Mathieu Chouquet-Stringer writes: > > I can do a: GIT_DIR=. git fetch and it works. > > That is the right way of doing it. Ok. > > The second question is I'd think I would have to use git fetch instead of > > git pull as a pull is fetch + merge and merging wouldn't make much sense as > > I didn't check out any files. Does it make any sense? > > Absolutely. Bare repositories are either to be pushed into or > fetched into. Great I ain't totally lost then! > > The third thing (can't reproduce ATM as I just got a fresh new clone) is > > that git fetch was just fetching over and over the same objects... > > It sounds like you are not telling fetch to update the refs you > track from outside. Perhaps, this may help (untested): > > $ GIT_DIR=/pub/scm/git/git.git git fetch \ > --update-head-ok $remote master:master I'll try that and will let you know... Thanks Junio for getting back to me. -- Mathieu Chouquet-Stringer "Le disparu, si l'on vénère sa mémoire, est plus présent et plus puissant que le vivant". -- Antoine de Saint-Exupéry, Citadelle --