From: Mathieu Chouquet-Stringer Date: Thu, 26 Jan 2006 18:27:30 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: > 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 guess I'm a little bit confused here as I'm not quite sure what I'm trying to accomplish... Here's what I ran: % GIT_DIR=. git fetch \ --update-head-ok git://www.kernel.org/pub/scm/git/git master:master Isn't git supposed to fetch master:origin as my remotes/origin file contains (I actually tried both and refs/heads/origin and refs/heads/master have the same value): URL: git://www.kernel.org/pub/scm/git/git.git Pull: master:origin Pull: todo:todo Pull: html:html Pull: maint:maint Pull: man:man Pull: pu:pu So it knows about the repository and the ref spec so all I need would be the --update-head-ok flag then, no? -- 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 --