如何让 Gitzilla 在 Windows 上运行
我最近安装了 Git 和 Bugzilla,并希望在它们之间进行某种集成。 TortoiseGit“集成”在某些方面很有用,但不完全是我所追求的。所以,我一直试图让 Gitzilla 工作但没有成功。我已经完成了以下操作以最接近让它工作:
- 设置一个 GIT“中央”存储库(我之前以分布式方式使用它)。
- 下载并安装:
- gera-gitzilla-gitzilla-2.0-12-g537df1c.zip
- Python 2.7
- Pybugz 0.8
- 将这些文件从 C:\Apps\Python-2.7\Scripts 复制到 C:\Git\Main\hooks:
- gitzilla-post-receive.exe
- gitzilla-post-receive.exe.manifest
- gitzilla-post-receive-script.py
- gitzilla-update.exe
- gitzilla-update.exe.manifest
- gitzilla-update-script.py
- 重命名 gitzilla -update-script.py 更新将
- gitzilla-post-receive-script.py 重命名为 post-receive
然后,当我提交更改并将其推送到中央 Git 服务器我收到此错误:(
git.exe push --progress "origin" master:master
Counting objects: 11, done.
Compressing objects: 100% (6/6)
Writing objects: 100% (8/8)
Writing objects: 100% (8/8), 646 bytes, done.
Total 8 (delta 2), reused 0 (delta 0)
remote: error: hook declined to update refs/heads/masteror directory
To //<server name>/<share name>/Main
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '//<server name>/<share name>/Main'
其中 <服务器名称> 和 <共享名称> 已被删除,因为它们对于我的系统是唯一的)
“masteror”目录是什么?我的系统在“refs/head/”文件夹中只有一个“master”文件。
是否可以在 Windows 上运行此错误,或者此错误与操作系统无关?
谢谢, 凯文.
I've recently installed Git and Bugzilla and was hoping to get some kind of integration going between them. The TortoiseGit "integration" is useful in some respect but not quite what I'm after. So, I've been trying to get Gitzilla to work without success. I've done the following to get closest to getting it to work:
- Setting up a GIT "central" repository (I was using it in a distributed manner previously).
- Downloading and installing:
- gera-gitzilla-gitzilla-2.0-12-g537df1c.zip
- Python 2.7
- Pybugz 0.8
- Copying these files from C:\Apps\Python-2.7\Scripts to C:\Git\Main\hooks:
- gitzilla-post-receive.exe
- gitzilla-post-receive.exe.manifest
- gitzilla-post-receive-script.py
- gitzilla-update.exe
- gitzilla-update.exe.manifest
- gitzilla-update-script.py
- Renaming gitzilla-update-script.py to update
- Renaming gitzilla-post-receive-script.py to post-receive
Then, when I committed a change and pushed it to the central Git server I get this error:
git.exe push --progress "origin" master:master
Counting objects: 11, done.
Compressing objects: 100% (6/6)
Writing objects: 100% (8/8)
Writing objects: 100% (8/8), 646 bytes, done.
Total 8 (delta 2), reused 0 (delta 0)
remote: error: hook declined to update refs/heads/masteror directory
To //<server name>/<share name>/Main
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '//<server name>/<share name>/Main'
(where <server name> and <share name> were removed because they're unique to my systems)
What is the "masteror" directory? My system only has a "master" file in the "refs/head/" folder.
Is it possible to run this on Windows or is this error unrelated to the OS?
Thanks,
Kevin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GitZilla 作者在这里。
我认为你的终端在欺骗你。
“masteror 目录”似乎是“没有这样的文件或目录”和“hook 拒绝更新 refs/heads/master”的合并。
Windows 上并不真正支持 GitZilla,但我可能会花一些时间在它上面 [给我买瓶啤酒? :)]
无论如何,一旦你得到了正确的错误消息(通过管道传输到文件可能会有所帮助),我建议提交一个错误(我使用 github 问题系统)。
GitZilla author here.
I think your terminal is playing tricks on you.
The 'masteror directory' seems to be an amalgamation of 'no such file or directory' and 'hook declined to update refs/heads/master'.
GitZilla isn't really supported on Windows, but I can possibly spend some time on it [buy me a beer? :)]
In any case, once you have the correct error messages (piping to a file might help), I would suggest filing a bug (I use the github issue system).