{"thread":{"id":"25355","subject":"RFE: execute post-receive hook on fetch","startedAt":"2010-10-05T11:03:12Z","lastAt":"2010-10-05T11:03:12Z","messageCount":1,"participants":["Thomas Moschny"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"152663","messageId":"20101005130312.500cc4c4@andromeda.ipd.uni-karlsruhe.de","threadId":"25355","inReplyTo":null,"subject":"RFE: execute post-receive hook on fetch","fromName":"Thomas Moschny","fromEmail":"thomas.moschny@gmx.de","sentAt":"2010-10-05T11:03:12Z","receivedAt":"2010-10-05T11:03:12Z","isPatch":false,"sender":{"key":"thomas.moschny@gmx.de","avatar":null},"body":"Hi,\n\nIt would be nice, if git could execute the \"post-receive\" hook (or a\nhook wit a new name but similar functionality) when doing a fetch.\n\nThis would be really useful in setups where e.g. a buildbot has its own\n(bare) mirror of a project's repository, polls on the main repo and\nnow needs to know what was fetched. Currently it has to record old refs\nand compare them with the refs itself. It could also inspect\nFETCH_HEADS to see what was fetched, but still, this file doesn't\nrecord old values for each ref.\n\nThe post-receive hook is executed when pushing stuff to the buildbot's\nmirror, but not when it fetches new stuff itself. This is kind of\nasymmetrical, and I didn't expect that no hook is executed in that case.\n\n- Thomas\n\n-- \nThomas Moschny  <thomas.moschny@gmx.de>\n"}]}