如何让 Gitzilla 工作

发布于 2024-11-28 12:11:35 字数 874 浏览 1 评论 0原文

我最近设置了一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黯淡〆 2024-12-05 12:11:35

GitZilla 作者在这里。

Git 旨在分布式,每个人都有自己的存储库。 Bugzilla 集成对于单个存储库来说是有意义的,而不是与每个人的存储库集成。

用例如下:

  • 每个人都有自己的 git 存储库,
  • 每个人都推送到“中央”存储库。正是这个中央存储库与 bugzilla 集成。
  • 钩子(负责 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:

  • everyone has their own git repository
  • everyone pushes to a "central" repo. It is this central repo that is integrated with bugzilla.
  • the hooks (responsible for the bugzilla activity) get executed on a push.

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]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文