user2571169
user2571169

Reputation: 181

GitZilla's update hook error?

Trying to integrate Bugzilla with GIT using GITZILLA.

Versions using are :
Git version : 1.8.2.1
gitzilla==2.0
pybugz==0.10

However, while doing the push , update hook throwing below error :

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 [email protected]:/opt/gitrepo/newtest
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '[email protected]:/opt/gitrepo/newtest'

Upvotes: 2

Views: 255

Answers (1)

CharlesB
CharlesB

Reputation: 90316

From the error trace it says:

file: /etc/gitzillarc, line: 140 ConfigParser.MissingSectionHeaderError: File contains no section headers

So it's a problem with your gitzillarc file at line 140, you might want to check it for any error.

Upvotes: 1

Related Questions