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

Reacting to new commits in a poll-mirror

From
MKmartin f krafft <madduck@madduck.net>
Date
Feb 2, 2010, 22:02 UTC
Message-ID
<20100202220234.GA17107@lapse.rw.madduck.net>
Folks,

I am trying to set up Patchwork-Git integration on host A for a project whose Git repo is on host B. I thought I could use a mirror (git clone --mirror) on A and regularly fetch from B, but I cannot find a way (hook) to make Git on A react to new commits it fetched from B.

I can probably hack something up, e.g. store refs before a fetch and then iterate the refs between the stored refs and the HEAD, but this seems exceedingly hackish and I'd much rather have this information from git-fetch (like git-push calls post-receive).

Is this at all possible? Would it be possible? Where would this be done?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
the uncertainty principle:
  you can never be sure how many
  beers you had last night.
 
spamtraps: madduck.bogus@madduck.net
Next: martin f krafft
Message 1 of 4 in “Reacting to new commits in a poll-mirror”
  1. martin f krafftFeb 2, 2010
  2. martin f krafftFeb 3, 2010
  3. Junio C HamanoFeb 3, 2010
  4. martin f krafftFeb 3, 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.