vcs: skip vcs detection on repo creating page

This commit is contained in:
RhodeCode Admin 2023-08-09 11:20:34 +02:00
parent 5cc2cfe0ea
commit cbe72d2e58

View file

@ -179,6 +179,8 @@ def detect_vcs_request(environ, backends):
# full channelstream connect should be VCS skipped
'_admin/channelstream/connect',
'++/repo_creating_check'
]
path_info = get_path_info(environ)
path_url = path_info.lstrip('/')
@ -187,6 +189,9 @@ def detect_vcs_request(environ, backends):
if item.endswith('++') and path_url.startswith(item[:-2]):
log.debug('path `%s` in whitelist (match:%s), skipping...', path_url, item)
return handler
if item.startswith('++') and path_url.endswith(item[2:]):
log.debug('path `%s` in whitelist (match:%s), skipping...', path_url, item)
return handler
if item == path_url:
log.debug('path `%s` in whitelist (match:%s), skipping...', path_url, item)
return handler