changeset 6446:347f38529080

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
author Mads Kiilerich <madski@unity3d.com>
date Sun, 22 Jan 2017 01:16:52 +0100
parents fb565a8b4b4f
children b57baf83dc3d
files kallithea/lib/paster_commands/cleanup.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: