尝试使用 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'