# HG changeset patch # User Marcin Kuzminski # Date 2018-09-19 12:19:45 # Node ID 4cafb0933f519535abe9225b0aaa717bbf278ce6 # Parent 73a2f607e2154e47caaf36f97a3e9c75c5c4550c import/repo-checks: skip validating storage path in detection of SCMs. diff --git a/rhodecode/lib/utils.py b/rhodecode/lib/utils.py --- a/rhodecode/lib/utils.py +++ b/rhodecode/lib/utils.py @@ -298,7 +298,12 @@ def is_valid_repo_group(repo_group_name, # we need to check bare git repos at higher level # since we might match branches/hooks/info/objects or possible # other things inside bare git repo - scm_ = get_scm(os.path.dirname(full_path)) + maybe_repo = os.path.dirname(full_path) + if maybe_repo == base_path: + # skip root level repo check, we know root location CANNOT BE a repo group + return False + + scm_ = get_scm(maybe_repo) log.debug('path: %s is a vcs object:%s, not valid repo group', full_path, scm_) return False except VCSError: