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

Git hook commit similar to subversion start-commit hook

From
JJJose Garcia Juanino <jjuanino@gmail.com>
Date
Mar 5, 2013, 21:14 UTC
Message-ID
<20130305211440.GA9929@banach>
Hello,

Is there any hook in Git similar to start-commit subversion hook? The requirements would be:

1- A hook on the server side (as pre-receive) 2- It will execute the actions *before* the begin of transaction (pre-receive hook needs the references already pushed before).

For example, it would be useful to refuse a push if the server has a high load.

I have read man githook, but there is nothing similar.
Best regard, and excuse my poor english.
Next: John Keeping
Message 1 of 2 in “Git hook commit similar to subversion start-commit hook”
  1. Jose Garcia JuaninoMar 5, 2013
  2. John KeepingMar 5, 2013

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.