Change config parsing to use RawConfigParser instead of SafeConfigParser.
fixes #4 reported by darkskiez.
This commit is contained in:
parent
fa956c5876
commit
94e794e3d2
@ -129,7 +129,7 @@ def post_receive():
|
|||||||
The user specific configuration is allowed to override the bugzilla
|
The user specific configuration is allowed to override the bugzilla
|
||||||
username and password.
|
username and password.
|
||||||
"""
|
"""
|
||||||
siteconfig = ConfigParser.SafeConfigParser()
|
siteconfig = ConfigParser.RawConfigParser()
|
||||||
siteconfig.readfp(file("/etc/gitzillarc"))
|
siteconfig.readfp(file("/etc/gitzillarc"))
|
||||||
sRepo = os.getcwd()
|
sRepo = os.getcwd()
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ def post_receive():
|
|||||||
print "No %s section found in /etc/gitzillarc" % (sRepo,)
|
print "No %s section found in /etc/gitzillarc" % (sRepo,)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
userconfig = ConfigParser.SafeConfigParser()
|
userconfig = ConfigParser.RawConfigParser()
|
||||||
userconfig.read(os.path.expanduser("~/.gitzillarc"))
|
userconfig.read(os.path.expanduser("~/.gitzillarc"))
|
||||||
|
|
||||||
(sBZUrl, sBZUser, sBZPasswd, bAllowDefaultAuth) = get_bz_data(siteconfig, userconfig)
|
(sBZUrl, sBZUser, sBZPasswd, bAllowDefaultAuth) = get_bz_data(siteconfig, userconfig)
|
||||||
@ -163,7 +163,7 @@ def update():
|
|||||||
The user specific configuration is allowed to override the bugzilla
|
The user specific configuration is allowed to override the bugzilla
|
||||||
username and password.
|
username and password.
|
||||||
"""
|
"""
|
||||||
siteconfig = ConfigParser.SafeConfigParser()
|
siteconfig = ConfigParser.RawConfigParser()
|
||||||
siteconfig.readfp(file("/etc/gitzillarc"))
|
siteconfig.readfp(file("/etc/gitzillarc"))
|
||||||
sRepo = os.getcwd()
|
sRepo = os.getcwd()
|
||||||
|
|
||||||
@ -182,7 +182,7 @@ def update():
|
|||||||
siteconfig.get(sRepo, "allowed_bug_states").split(","))
|
siteconfig.get(sRepo, "allowed_bug_states").split(","))
|
||||||
|
|
||||||
# and the bugzilla info.
|
# and the bugzilla info.
|
||||||
userconfig = ConfigParser.SafeConfigParser()
|
userconfig = ConfigParser.RawConfigParser()
|
||||||
userconfig.read(os.path.expanduser("~/.gitzillarc"))
|
userconfig.read(os.path.expanduser("~/.gitzillarc"))
|
||||||
(sBZUrl, sBZUser, sBZPasswd, bAllowDefaultAuth) = get_bz_data(siteconfig, userconfig)
|
(sBZUrl, sBZUser, sBZPasswd, bAllowDefaultAuth) = get_bz_data(siteconfig, userconfig)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user