# HG changeset patch # User Mads Kiilerich # Date 2015-05-07 16:23:45 # Node ID cb4e2b2be955c919481afe2ca7ffc57d0e482874 # Parent 496bd1bc9a69747d646c518a59add2f3565098e7 reposcan: avoid infinite recursion - don't follow symlinks when scanning The whole reposcan mechanism is a mess and should be rewritten ... diff --git a/kallithea/lib/utils.py b/kallithea/lib/utils.py --- a/kallithea/lib/utils.py +++ b/kallithea/lib/utils.py @@ -247,7 +247,7 @@ def get_filesystem_repos(path, recursive continue #check if this dir containts other repos for recursive scan rec_path = os.path.join(p, dirpath) - if os.path.isdir(rec_path): + if not os.path.islink(rec_path) and os.path.isdir(rec_path): for inner_scm in _get_repos(rec_path): yield inner_scm