Groovy预接收挂钩阻止推-f(强制推动)

时间:2016-10-20 07:09:57

标签: groovy gitblit

我想在我们的gitblit存储库中实现块强制推送机制。我想要一个预先接收的groovy脚本来这样做。有人可以帮忙。在此先感谢!!!!

1 个答案:

答案 0 :(得分:0)

The simplest way to avoid force pushes is to assign RW permissions rather than RW+. If you really want to grant RW+ permission but block it's use, then you'll have to implement a variation of this hook script.