Re: Odd results writing a Git pre-receive hook to syntax check PHP files.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Heya,

On Mon, Aug 30, 2010 at 11:27, Chris Patti <cpatti@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]