# HG changeset patch # User RhodeCode Admin # Date 2023-08-09 09:20:34 # Node ID 8d42472a2ec6edb85e1bab286dd00e4ee6dd35f5 # Parent cce9654413b476093da26f06123af762732bc106 vcs: skip vcs detection on repo creating page diff --git a/rhodecode/lib/middleware/vcs.py b/rhodecode/lib/middleware/vcs.py --- a/rhodecode/lib/middleware/vcs.py +++ b/rhodecode/lib/middleware/vcs.py @@ -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