2

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

使用的版本是:
Git 版本:1.8.2.1
gitzilla==2.0
pybugz==0.10

但是,在进行 push 时,更新钩子会抛出以下错误:

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'
4

1 回答 1

1

从错误跟踪中它说:

文件:/etc/gitzillarc,行:140 ConfigParser.MissingSectionHeaderError:文件不包含节标题

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

于 2013-07-25T08:53:47.650 回答