首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >GitZilla的更新钩子错误?

GitZilla的更新钩子错误?
EN

Stack Overflow用户
提问于 2013-07-25 16:47:44
回答 1查看 249关注 0票数 2

尝试使用GITZILLA将Bugzilla与GIT集成。

使用的版本包括:

Git版本: 1.8.2.1

gitzilla==2.0

pybugz==0.10

但是,在执行推送时,更新钩子抛出下面的错误:

代码语言:javascript
复制
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 266 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 8, in <module>
remote:     load_entry_point('gitzilla==2.0', 'console_scripts', 'gitzilla-update')()
remote:   File "build/bdist.linux-x86_64/egg/gitzilla/hookscripts.py", line 190, in update
remote:   File "/opt/Python-2.7.3/lib/python2.7/ConfigParser.py", line 324, in readfp
remote:     self._read(fp, filename)
remote:   File "/opt/Python-2.7.3/lib/python2.7/ConfigParser.py", line 512, in _read
remote:     raise MissingSectionHeaderError(fpname, lineno, line)
remote: ConfigParser.MissingSectionHeaderError: File contains no section headers.
remote: file: /etc/gitzillarc, line: 140
remote: ' [/opt/gitrepo/newtest/.git]\n'
remote: error: hook declined to update refs/heads/master
To shivpal.chawla@10.86.41.14:/opt/gitrepo/newtest
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'shivpal.chawla@10.86.41.14:/opt/gitrepo/newtest'
EN

回答 1

Stack Overflow用户

发布于 2013-07-25 16:53:48

从错误跟踪中可以看出:

文件:/etc/gitzillarc140行: ConfigParser.MissingSectionHeaderError:文件不包含节标题

所以这是gitzillarc第140行的一个问题,你可能想要检查它是否有任何错误。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17853208

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档