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

Re: push --mirror on post-receive hook?

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
May 13, 2011, 08:25 UTC
Message-ID
<20110513082516.GA17821@LK-Perkele-VI.localdomain>
In-Reply-To
<BANLkTim9S2qGRB=bWxWkMj3s=kmD=YaZqA@mail.gmail.com>
On Thu, May 12, 2011 at 02:35:15PM -0700, Jordi Bunster wrote:
> Is it safe to call push --mirror $SOME_REMOTE on a post-receive hook?
> Is push always safe for the source repo?

Yes, it is safe, apart from potential hang if $SOME_REMOTE can't be contacted (it can take minutes for the TCP connect() to time out).

-Ilari
Previous: Jordi Bunster
Message 2 of 2 in “push --mirror on post-receive hook?”
  1. Jordi BunsterMay 12, 2011
  2. Ilari LiusvaaraMay 13, 2011

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.