On Thu, May 3, 2012 at 7:05 PM, Hilco Wijbenga <hilco.wijbenga@xxxxxxxxx> wrote: > On 3 May 2012 02:00, Thomas Rast <trast@xxxxxxxxxxxxxxx> wrote: >> Shouldn't those checks be made server-side with a pre-receive hook? > > Firstly, see my original email: we have no such access to the server. > Secondly, (now that I've thought about it a bit more), it makes more > sense to do it on the "client" instead of having the server do all the > work for everybody. (Fail early, fail fast.) No matter how you go about this, there is no way to _guarantee_ that a given hook is run in all user repos (after all, the users have the ultimate control over their own repos), so if you really _need_ the hook to be run, then you have no other choice but to put it on the server. Such is the nature of distributed version control. If you still want a hook to run in user repos, you can only ask that users enable the hook by including a script which copies the hook into place, and then tell your users to run that script (e.g. in your README). ...Johan -- Johan Herland, <johan@xxxxxxxxxxx> www.herland.net -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html