Gitosis:设置存储库配置变量
有没有办法通过 gitosis conf 设置存储库配置变量,而不是进入每个存储库并直接编辑 conf 值?
Is there a way to set repository config variables through the gitosis conf instead of going into each repository and editing the conf values directly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这是不可能的。
另一方面,构建“瓷器”脚本非常简单,该脚本可以分析 gitosis.conf 中的一些编码 conf 值的特殊注释。
然后将这样的脚本放入提交后挂钩中应该可以解决问题。
I don't think it's possible.
On the other hand, it's quite simple to build "porcelain" script that analyzes your gitosis.conf for some special comments encoding the conf values.
Then putting such script in a post-commit hook should do the trick.
注意(10年后,2018年),gitosis早已被gitolite取代。
gitolite 提供了一种通过 gitolite 配置指定配置变量的方法。
Note (10 years later, 2018), gitosis has long been replaced by gitolite.
And gitolite offers a way to specify config variables through gitolite configuration.