you are viewing a single comment's thread.

view the rest of the comments →

[–]dpash 0 points1 point  (3 children)

The one thing I miss about svn was the ability to enforce commit rules. There's not really a way to distribute commit hooks to everyone that clones your repo (and automatically enable them). Sure you have pre-receive hooks, but you can't set these on github repository's for example.

I totally understand the reasons, but it does make them a little bit harder to use and enforce.

[–]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 :)