Changeset - cb4e2b2be955
[Not reviewed]
stable
0 1 0
Mads Kiilerich - 11 years ago 2015-05-07 16:23:45
madski@unity3d.com
reposcan: avoid infinite recursion - don't follow symlinks when scanning

The whole reposcan mechanism is a mess and should be rewritten ...
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/utils.py
Show inline comments
 
@@ -244,13 +244,13 @@ def get_filesystem_repos(path, recursive
 
                yield scm_info[1].split(path, 1)[-1].lstrip(os.sep), scm_info
 
            except VCSError:
 
                if not 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
 

	
 
    return _get_repos(path)
 

	
 

	
0 comments (0 inline, 0 general)