diff --git a/rhodecode/lib/utils.py b/rhodecode/lib/utils.py --- a/rhodecode/lib/utils.py +++ b/rhodecode/lib/utils.py @@ -201,9 +201,11 @@ def get_filesystem_repos(path, recursive log.debug('now scanning in %s location recursive:%s...' % (path, recursive)) def _get_repos(p): + if not os.access(p, os.R_OK) or not os.access(p, os.X_OK): + log.warn('ignoring repo path without access: %s', p) + return if not os.access(p, os.W_OK): - log.warn('ignoring repo path without write access: %s', p) - return + log.warn('repo path without write access: %s', p) for dirpath in os.listdir(p): if os.path.isfile(os.path.join(p, dirpath)): continue