changeset 6768:00cac9e13622 stable

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 67e2224d75c1
children 1013af35fa60
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	Fri Jan 06 01:43:51 2017 +0100
+++ b/kallithea/lib/paster_commands/cleanup.py	Sun Jan 22 01:16:52 2017 +0100
@@ -89,6 +89,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: