From: Miklos Vajna Date: Mon, 19 Oct 2009 11:21:53 GMT Subject: Re: Potentially dangerous behavior of git gc Message-ID: <20091019112153.GX6115@genesis.frugalware.org> In-Reply-To: On Mon, Oct 19, 2009 at 08:04:58AM +0000, Sergio Callegari wrote: > With this when the alternate info of A is finally updated, A is broken, missing > many references and not having a head anymore. > > Would it be better to have git gc not to take dangerous actions on potentially > problematic repos? Such repos are usually created using git clone -s. See the NOTE of the manpage under the -s option, probably you want to use git repack -a after git clone.