From: Martin Langhoff Date: Thu, 20 Oct 2005 00:43:48 GMT Subject: Re: git-send-pack segfaulting on DebianPPC (was: Re: cg-clone, tag objects and cg-push/git-push don't play nice) Message-ID: <46a038f90510191743r22205cf5ia6e5fd624c2d4949@mail.gmail.com> In-Reply-To: <20051019235208.GR30889@pasky.or.cz> On 10/20/05, Petr Baudis wrote: > Dear diary, on Thu, Oct 20, 2005 at 01:23:11AM CEST, I got a letter > where Martin Langhoff told me that... > > Actually, all the tagsrefs have only one line, but something is going > > weird around tagid=$(cat $tag) as $tag ends up containing many > > filenames. So I undid my initial change to "head -n1", and I'm trying > > to fix the loop. > > Hmm, what bash version are you using? It's enclosed in > > for tag in * > > and perhaps your bash misunderstood. After a bit of head-scratching, I found out what was causing this one: legacy tagnames from git-cvsimport that contain '*' in the tagname. So tagid=$(cat SOME_TAG **INVALID**) gives us some really nasty surprises. cheers, martin