From: J. Bakshi Date: Wed, 20 Jul 2011 07:21:24 GMT Subject: Re: pre-commit not working at server side push Message-ID: <20110720125124.3c746a1a@shiva.selfip.org> In-Reply-To: <20110720071807.GA10104@LK-Perkele-VI.localdomain> On Wed, 20 Jul 2011 10:18:07 +0300 Ilari Liusvaara wrote: > On Wed, Jul 20, 2011 at 12:13:56PM +0530, J. Bakshi wrote: > > Hello list, > > > > I have this bash script to check php syntax error and prevent the commit if there is any > > > > > Running fine when placed it at local copy. > > > > I have placed the hook at the server under hooks directory and provided the execute permission also > > > > $ chmod a+x hooks/pre-commit > > > > But even with wrong php syntax I am able to push the file. Have I missed something ? > > Pre-commit runs on commit, not on push. And push is not commit. > > -Ilari Thanks, already figured it out, it would be pre-receive on server; but still not working.