config: Use prepared settings from app init to setup the vcs connection.
This commit is contained in:
parent
3d5075af5f
commit
a5fa6cfaca
1 changed files with 6 additions and 6 deletions
|
|
@ -212,16 +212,16 @@ def dbsession(func):
|
|||
def vcsconnection(func):
|
||||
def __wrapper(func, *fargs, **fkwargs):
|
||||
if rhodecode.CELERY_ENABLED and not rhodecode.CELERY_EAGER:
|
||||
backends = config['vcs.backends'] = aslist(
|
||||
config.get('vcs.backends', 'hg,git'), sep=',')
|
||||
settings = rhodecode.PYRAMID_SETTINGS
|
||||
backends = settings['vcs.backends']
|
||||
for alias in rhodecode.BACKENDS.keys():
|
||||
if alias not in backends:
|
||||
del rhodecode.BACKENDS[alias]
|
||||
utils.configure_pyro4(config)
|
||||
utils.configure_vcs(config)
|
||||
utils.configure_pyro4(settings)
|
||||
utils.configure_vcs(settings)
|
||||
connect_vcs(
|
||||
config['vcs.server'],
|
||||
utils.get_vcs_server_protocol(config))
|
||||
settings['vcs.server'],
|
||||
utils.get_vcs_server_protocol(settings))
|
||||
ret = func(*fargs, **fkwargs)
|
||||
return ret
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue