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

RFE: execute post-receive hook on fetch

From
TMThomas Moschny <thomas.moschny@gmx.de>
Date
Oct 5, 2010, 11:03 UTC
Message-ID
<20101005130312.500cc4c4@andromeda.ipd.uni-karlsruhe.de>
Hi,

It would be nice, if git could execute the "post-receive" hook (or a hook wit a new name but similar functionality) when doing a fetch.

This would be really useful in setups where e.g. a buildbot has its own (bare) mirror of a project's repository, polls on the main repo and now needs to know what was fetched. Currently it has to record old refs and compare them with the refs itself. It could also inspect FETCH_HEADS to see what was fetched, but still, this file doesn't record old values for each ref.

The post-receive hook is executed when pushing stuff to the buildbot's mirror, but not when it fetches new stuff itself. This is kind of asymmetrical, and I didn't expect that no hook is executed in that case.

- Thomas
-- 
Thomas Moschny  <thomas.moschny@gmx.de>
Message 1 of 1 in “RFE: execute post-receive hook on fetch”
  1. Thomas MoschnyOct 5, 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.