git-fsck-all: skip .sync directories

master
neingeist 7 years ago
parent 7cbabccc90
commit da58498b13

@ -15,6 +15,8 @@ import subprocess
def git_directories(startdir): def git_directories(startdir):
for dirpath, dirnames, _ in os.walk(startdir): for dirpath, dirnames, _ in os.walk(startdir):
if '.sync' in dirpath:
continue
if set(['info', 'objects', 'refs']).issubset(set(dirnames)): if set(['info', 'objects', 'refs']).issubset(set(dirnames)):
yield dirpath yield dirpath

Loading…
Cancel
Save