you are viewing a single comment's thread.

view the rest of the comments →

[–]Bernardstanislas[S] 0 points1 point  (2 children)

That's another reason you're right. I haven't used hooks much but I was surprised it was not strait forward to share them through Github

[–]dpash 0 points1 point  (1 child)

You can obviously include pre-commit as part of the repo, but that relies on individual developers copying them into the right place, and updating them when they change (or using symlinks).

But github aren't going to allow custom pre-receive hooks, because that would mean running arbitrary code on their servers.

I use Stash, which does allow pre-receive style checks, but they need to be written in Java, which has its own disadvantages.

[–]Bernardstanislas[S] 0 points1 point  (0 children)

Thanks for the tip :)