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

Git extra hook, pre-upload

From
X1Xheroz 128 <kenneth.951218@gmail.com>
Date
Dec 30, 2018, 20:11 UTC
Message-ID
<754B8F69-BD83-4EBB-9E86-6DF845624B1B@gmail.com>
Hello,
My name is Kenneth Lee, a student at Teikyo University, Japan.
Currently, I’m doing my Final Year Project that requires a hook that executes automatically on the server side of the repository, before the objects been pulled to the client side, and after the objects have been pushed to the server side, which is "post-receive" hook. The post-receive hook work well for me, but I couldn’t find any hook to be executed immediately before an upload-operation is performed, i.e. before data is sent to the client. 
Why Git doesn't have a hook that executed immediately before the data is sent to the client? Any advice on getting this hook or any similar function of the hook? 
Thanks,

Kenneth Lee Zhen Kang +8180-9828-2935

Next: Ævar Arnfjörð Bjarmason
Message 1 of 5 in “Git extra hook, pre-upload”
  1. Xheroz 128Dec 30, 2018
  2. Ævar Arnfjörð BjarmasonDec 30, 2018
  3. Junio C HamanoJan 2, 2019
  4. Jeff KingJan 3, 2019
  5. Jeff KingJan 6, 2019

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.