Merge pull request #27382 from terminalmage/revert-27218

Revert "fixes #27217 clear_old_remotes clears wrong directory (gitfs)"
This commit is contained in:
Colton Myers 2015-09-24 16:54:22 -06:00
commit 633af56517

View file

@ -1609,7 +1609,7 @@ class GitBase(object):
pass
to_remove = []
for item in cachedir_ls:
if item in ('gitfs', 'refs'):
if item in ('hash', 'refs'):
continue
path = os.path.join(self.cache_root, item)
if os.path.isdir(path):