From: Jeff King Date: Sun, 07 Sep 2008 17:34:34 GMT Subject: Re: Is "show-ref -h" a good test for an empty repository? Message-ID: <20080907173434.GA26182@coredump.intra.peff.net> In-Reply-To: <7vprnfn9pz.fsf@gitster.siamese.dyndns.org> On Sun, Sep 07, 2008 at 10:31:52AM -0700, Junio C Hamano wrote: > All depends on how "an empty repository" is defined. My definition of an > empty repository would have been: > > - No objects in it; > - No index; > - No refs except symrefs. Agreed. In the original message, he used the phrase "no existing commits" which I latched onto (to mean "no existing commits on this branch"). But the subject does say "empty repository". :) Eric, maybe you can tell us more about what you're trying to accomplish? -Peff