git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: pre-commit not working at server side push

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
Jul 20, 2011, 07:18 UTC
Message-ID
<20110720071807.GA10104@LK-Perkele-VI.localdomain>
In-Reply-To
<20110720121356.4dc21f6b@shiva.selfip.org>
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
 
<snip>
 
Show 7 quoted lines
> 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
Previous: J. BakshiNext: J. Bakshi
Message 6 of 7 in “pre-commit not working at server side push”
  1. J. BakshiJul 20, 2011
  2. J. BakshiJul 20, 2011
  3. Ilari LiusvaaraJul 20, 2011
  4. J. BakshiJul 20, 2011
  5. J. BakshiJul 20, 2011
  6. Ilari LiusvaaraJul 20, 2011
  7. J. BakshiJul 20, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.