diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-05-08 10:26:59 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-05-08 10:26:59 +0000 |
commit | 1abee6882d38439e88e509e13f6c008bc26f5646 (patch) | |
tree | 2cb62f5ef3e29d83f5a0405b3f1c269d40d89287 | |
parent | 6aebea574c4b65643cbfff3771ddc50999dad3d4 (diff) | |
download | morph-1abee6882d38439e88e509e13f6c008bc26f5646.tar.gz |
squash! Add 'morph validate' command to run 'git fsck' in all cached repos
-rw-r--r-- | morphlib/plugins/cache_check_plugin.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/plugins/cache_check_plugin.py b/morphlib/plugins/cache_check_plugin.py index 3a3487f2..621d9d8a 100644 --- a/morphlib/plugins/cache_check_plugin.py +++ b/morphlib/plugins/cache_check_plugin.py @@ -50,10 +50,12 @@ class CacheCheckPlugin(cliapp.Plugin): # Trove is ignored -- validating that is really up to the sysadmin. # morph could do that, though. + self.app.status( + msg='Checking all locally cached git repositories for corruption') git_errors = lrc.validate() - self.app.output.write('Found corruption in %i cached git repos.\n' % - len(git_errors)) + self.app.output.write( + 'Found corruption in %i cached git repos.\n' % len(git_errors)) for repo_dir, error_text in git_errors.iteritems(): self.app.output.write(' %s\n' % repo_dir) |