如何让 Gitzilla 工作
我最近设置了一个 bugzilla 实例用于错误跟踪,并希望将其与 git 集成。我发现 Gitzilla 从它的描述来看似乎很棒,但在几个小时的混乱之后我已经厌倦了它不起作用。 我正在运行 Ubuntu Natty。 1) pybugz 已安装,我可以使用以下命令访问错误: bugz --connection my_test get 197
但我不确定 Gitzilla 是否需要设置默认连接。不知道怎么办? 2)我设置了 /etc/gitzillarc
[/home/rewolf/git_repos/myproj/.git]
bugzilla_url: http://server.domain/bugs/
bugzilla_user: [email protected]
bugzilla_password: coolpass
logfile: /var/log/gitzilla
user_config: allow
3)我在 ~/git_repos/myproj/.git/hooks/
中设置了 git hooks 的符号链接 4)我尝试进行提交,例如: git commit -a -m "Bug 197: this is rubbish"
但没有什么特别的事情发生,我也没有看到任何反馈。 /var/log/gitzilla 日志文件也是空的(并且它有 777 权限)。
我只是想了解如何让它发挥作用,如果有人可以帮助我,我会亲吻他们的脚(但也许不会)。
I have recently set up a bugzilla instance for bug tracking and would like to integrate it with git. I found Gitzilla which seemed to be awesome from its description, but I am now fed up after hours of confusion with it not working.
I am running Ubuntu Natty.
1) pybugz is installed and I can access bugs using: bugz --connection my_test get 197
but I'm not sure if Gitzilla requires a default connection to be setup. not sure how?
2) I set up a /etc/gitzillarc
[/home/rewolf/git_repos/myproj/.git]
bugzilla_url: http://server.domain/bugs/
bugzilla_user: [email protected]
bugzilla_password: coolpass
logfile: /var/log/gitzilla
user_config: allow
3) I setup the symlinks to the git hooks in ~/git_repos/myproj/.git/hooks/
4) I try to do a commit such as: git commit -a -m "Bug 197: this is rubbish"
but nothing special happens and I see absolutely no feedback. The /var/log/gitzilla logfile is empty too (and it has 777 permissions).
I just want to understand how to get it to work, and if anybody could help me I would kiss their feet (maybe not though).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GitZilla 作者在这里。
Git 旨在分布式,每个人都有自己的存储库。 Bugzilla 集成对于单个存储库来说是有意义的,而不是与每个人的存储库集成。
用例如下:
由于您只是进行提交,而不是推送,因此这些挂钩永远不会执行,并且 gitzilla 日志自然是空的。
如果您想将 bugzilla 与您自己的存储库(单个开发人员场景)集成,您可以使用 gitzilla 基础设施编写自己的钩子(提交后,甚至预提交 - 取决于您要执行的操作)。
然而,最简单且最具前瞻性的方法是使用 GitZilla 提供的集成来设置一个“中央”存储库,并从中克隆您的个人存储库。
希望有帮助。您可以在 [电子邮件受保护]
GitZilla author here.
Git is meant to be distributed where everyone has their own repository. Bugzilla integration makes sense with a single repository as opposed to integrating with everyone's repo.
The use case is the following:
Since you're just doing a commit, and not a push, those hooks never execute and the gitzilla log is naturally empty.
If you want to integrate bugzilla with your own repo (a single developer scenario), you can write your own hooks (post-commit, or even pre-commit - depending on what you're trying to do) using the gitzilla infrastructure.
However, the easiest and most future proof method would be to set up a "central" repo with the integration provided by GitZilla and clone your personal repo from it.
Hope that helps. You can get gitzilla answers on [email protected]