尝试使用GITZILLA将Bugzilla与GIT集成。
使用的版本是:
Git版本:1.8.2.1
gitzilla == 2.0
pybugz == 0.10
然而,在执行推送时,更新钩子抛出以下错误:
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'
答案 0 :(得分:1)
从错误跟踪中说出:
file:/ etc / gitzillarc,line:140 ConfigParser.MissingSectionHeaderError:文件不包含任何部分 头
因此,第140行的gitzillarc文件存在问题,您可能需要检查是否有任何错误。