From: Petr Baudis Date: Mon, 18 Apr 2005 18:47:50 GMT Subject: Re: [PATCH] Get commits from remote repositories by HTTP Message-ID: <20050418184750.GD5554@pasky.ji.cz> In-Reply-To: <200504181841.j3IIfgP31258@unix-os.sc.intel.com> Dear diary, on Mon, Apr 18, 2005 at 08:41:42PM CEST, I got a letter where tony.luck@intel.com told me that... > >Not a patch ... it is a whole file. I called it "git-wget", but it might > >also want to be called "git-pulltop". > > It's been pointed out to me that I based this script on a pre-historic version > of ls-tree from sometime last week. Modern versions print the mode with %06o > so there is a leading 0 on the mode for a directory. Just change > > if [ $mode = 40000 ] > > to > > if [ $mode = 040000 ] > > to fix it. ...and this is precisely why ls-tree actually outputs those "blob" and "tree" tags. ;-) -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor