Mercurial > kallithea
changeset 5101:cb4e2b2be955 stable
reposcan: avoid infinite recursion - don't follow symlinks when scanning
The whole reposcan mechanism is a mess and should be rewritten ...
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 07 May 2015 16:23:45 +0200 |
parents | 496bd1bc9a69 |
children | a9d2e2958514 |
files | kallithea/lib/utils.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/utils.py Thu May 07 16:23:45 2015 +0200 +++ b/kallithea/lib/utils.py Thu May 07 16:23:45 2015 +0200 @@ -247,7 +247,7 @@ 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