From: Sverre Rabbelier Date: Mon, 30 Aug 2010 16:32:40 GMT Subject: Re: Odd results writing a Git pre-receive hook to syntax check PHP files. Message-ID: In-Reply-To: Heya, On Mon, Aug 30, 2010 at 11:27, Chris Patti wrote: > fatal: bad object 0000000000000000000000000000000000000000 > Syntax checker hook is malfunctioning.  Can't execute git diff --raw. Check before calling 'git diff --raw' if the lhs is 0000000000000000000000000000000000000000 or not, if it is, just use git show on all files? -- Cheers, Sverre Rabbelier