threads / discuss / 27342

push --mirror on post-receive hook?

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

## tl;dr

2 messages between May 12, 2011 and May 13, 2011.

replies: 1people: 2as markdown or json

Ilari Liusvaara· May 13, 2011, 08:25 UTC · re: Jordi Bunster · lore

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

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

← back to recent threads