-
Notifications
You must be signed in to change notification settings - Fork 27
remote: UnboundLocalError: local variable 'cookie_file' referenced before assignment #21
Description
I am trying to install gitzilla and I get this error. I managed to install it successfully on another machine - and the settings seem the same - but on a push I get an error
[adrian@localhost cpp11]$ git push
Counting objects: 15, done.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 1.49 KiB, done.
Total 10 (delta 6), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote: File "hooks/update", line 9, in
remote: load_entry_point('gitzilla==2.0', 'console_scripts', 'gitzilla-update')()
remote: File "/usr/lib/python2.7/site-packages/gitzilla-2.0-py2.7.egg/gitzilla/hookscripts.py", line 213, in update
remote: bRequireBugNumber)
remote: File "/usr/lib/python2.7/site-packages/gitzilla-2.0-py2.7.egg/gitzilla/hooks.py", line 184, in update
remote: oBZ = bz_init(sBZUrl, sBZUser, sBZPasswd)
remote: File "/usr/lib/python2.7/site-packages/gitzilla-2.0-py2.7.egg/gitzilla/hookscripts.py", line 125, in bz_init
remote: oBZ = bugz.bugzilla.Bugz(sBZUrl, user=sBZUser, password=sBZPasswd)
remote: File "/usr/lib/python2.7/site-packages/bugz/bugzilla.py", line 181, in init
remote: self.warn('Unable to save session cookies in %s' % cookie_file)
remote: UnboundLocalError: local variable 'cookie_file' referenced before assignment
remote: error: hook declined to update refs/heads/master
To git://idbs-src/cpp11.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git://idbs-src/cpp11.git'
gitzillarc
[/var/lib/git/cpp11.git]
bugzilla_url: http://idbs-src/bugzilla
bugzilla_user: *************
bugzilla_password: ********
formatspec: cpp11.git commit %H%d%n%aE%n%s%n%n%b
allowed_bug_states: NEW, ASSIGNED, REOPENED, CONFIRMED
No errors in git-daemon
Oct 20 13:23:11 localhost xinetd[20293]: START: git pid=20400 from=::ffff:192.168.124.50
Oct 20 13:23:11 localhost git-daemon[20400]: Extended attributes (15 bytes) exist <host=idbs-src>
Oct 20 13:23:11 localhost git-daemon[20400]: Request receive-pack for '/cpp11.git'
Oct 20 13:23:11 localhost xinetd[20293]: EXIT: git status=0 pid=20400 duration=0(sec)
My commit message
Bug #1 Minor changes for testing of
Added a new file that has nothing to do with C++11
Random changes to other files
Added file for reviewboard config
Any help appreciated -
TIA.
Adrian