From: Johannes Schindelin Date: Tue, 27 Dec 2005 14:01:40 GMT Subject: Re: [PATCH] Do not allow git-init-db to be called twice in the same directory Message-ID: In-Reply-To: <7vbqz3ibhn.fsf@assigned-by-dhcp.cox.net> Hi, On Mon, 26 Dec 2005, Junio C Hamano wrote: > Johannes Schindelin writes: > > > t5300 is also adapted, since it relies heavily on init-db not complaining > > when $GIT_DIR already exists. > > I think it tries not to overwrite things that are already there > and is meant to be safe to run in an already populated > repository; e.g. you should be able to use it to pick up newly > added templates. Ah, that is a use case I missed. I don't work too much with templates (only on the shared repositories' machine)... > Is there a particular reason running the current init-db twice > is undesirable? In my case, yes. When I do that, it means that I did not correctly change directories. I fscked up my private git repository twice that way. I like your point, though. Ciao, Dscho