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

How does receive-pack and pre-receive hook works ?

From
MVMahesh Vaidya <forvaidya@gmail.com>
Date
Jun 27, 2010, 02:24 UTC
Message-ID
<AANLkTinYRF2m95MU2c817bK6mfehPt_OMBH45R6laNUe@mail.gmail.com>
How does receive-pack and pre-receive hook works ?

I have added following in pre-recieve hook; all works fine. git rev-list --pretty d6d147f432869037a7ac8bdca3a2d5bc0cdc1e9f ^a3fe19833480023b72350d6e56e939cbd0ba2c8b

I Would like know where does Git saves whatever I am pushing before exit 0 of this hook; Specifically how does it understand about 'd6d147f432869037a7ac8bdca3a2d5bc0cdc1e9f' which is not part of destination depot / repo.

Thx/ Mahesh.
Next: Shawn Pearce
Message 1 of 2 in “How does receive-pack and pre-receive hook works ?”
  1. Mahesh VaidyaJun 27, 2010
  2. Shawn PearceJun 27, 2010

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.