托管Git解决方案与服务器端挂钩? [英] Hosted Git Solution With Server-Side Hooks?
问题描述
已经有一个类似的用于版本控制的托管解决方案 - 具有预先提交的挂钩?关于SO的问题。然而,问这个问题的用户只需要客户端钩子,而且我正在寻找一个允许您配置服务器端钩子的Git主机。 p>
(我寻找这个的原因是,我们可以防止开发人员在特定的分支上push -f。客户端钩子是
那么,任何人都可以推荐一个允许其用户设置服务器端钩子的Git主机吗?
(如果该主机还提供集成的bug跟踪器,则为奖励分数。)
*编辑* strong>
这个问题已经得到解答,奖金也被授予......但是如果有任何Git主机在那里可以更容易地阻止push -f (要么通过提供自己的权限级别,要么提供发布pre-recieve钩子的访问权限,然后让我使用已经编写的/标准的预先接收脚本),我会喜欢听说它们。
github上可用的钩子列表在这里: https://github.com/ {user} / {repository} / admin / hooks
他们有一个通用的post-receive hook,但不是通用的pre-receive
你可以在这里编码自己: https://github.com/github/github-services
There is already a similar "Hosted Solution for Version Control — with pre-commit hooks?" question on SO. However, the user who asked that question only needed client-side hooks, and I'm looking for a Git host that allows you to configure server-side hooks.
(The reason I'm looking for this is so that we can prevent developers from being able to "push -f" on specific branches. Client-side hooks are of no minimal use for solving this problem.)
So, can anyone recommend a Git host that allows its users to set server-side hooks?
(Bonus points if said host also offers an integrated bug tracker.)
* EDIT *
This question has already been answered, and the bounty awarded ... but if there are any Git hosts out there that make it easier to prevent "push -f" (either by providing that level of permissioning themselves, or by providing access to publish pre-recieve hooks, which would then let me use already-written/standard pre-recieve scripts) I would LOVE to hear about them.
the list of hooks available on github is here: https://github.com/{user}/{repository}/admin/hooks
they have a generic post-receive hook, but not a generic pre-receive
you can code up your own here: https://github.com/github/github-services
这篇关于托管Git解决方案与服务器端挂钩?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!