git-fsck-all: run fsck with --no-dangling

This commit is contained in:
neingeist 2018-02-17 14:59:03 +01:00
parent 51584914e5
commit 9dd752c9e5

View file

@ -32,7 +32,7 @@ def working_directory(directory):
for git_directory in git_directories('.'):
with working_directory(git_directory):
print('\n{}:'.format(os.getcwd()))
ret = subprocess.call(['git', 'fsck'])
ret = subprocess.call(['git', 'fsck', '--no-dangling'])
if ret != 0:
print((Fore.RED + 'git fsck is unhappy with {}' + Fore.RESET)
.format(git_directory))