# HG changeset patch # User Mads Kiilerich # Date 2017-01-22 01:16:52 # Node ID 00cac9e136228f8d4621d3de9e64d93ea39fb413 # Parent 67e2224d75c12d3af7db924c5ef4219393287206 cleanup: make sure the kind of repos found by scanning also are ignored for cleanup - don't recurse into non-bare git or svn repos diff --git a/kallithea/lib/paster_commands/cleanup.py b/kallithea/lib/paster_commands/cleanup.py --- a/kallithea/lib/paster_commands/cleanup.py +++ b/kallithea/lib/paster_commands/cleanup.py @@ -89,6 +89,8 @@ class Command(BasePasterCommand): alldirs = list(dirs) del dirs[:] if ('.hg' in alldirs or + '.git' in alldirs or + '.svn' in alldirs or 'objects' in alldirs and ('refs' in alldirs or 'packed-refs' in f)): continue for loc in alldirs: