# HG changeset patch # User Mads Kiilerich # Date 1485044212 -3600 # Node ID 347f3852908064f556585a145dd6a4d93c28d930 # Parent fb565a8b4b4f43e092b76f452714b499a94086f8 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 -r fb565a8b4b4f -r 347f38529080 kallithea/lib/paster_commands/cleanup.py --- a/kallithea/lib/paster_commands/cleanup.py Sun Jan 22 01:16:51 2017 +0100 +++ b/kallithea/lib/paster_commands/cleanup.py Sun Jan 22 01:16:52 2017 +0100 @@ -82,6 +82,8 @@ 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: