aboutsummaryrefslogtreecommitdiff
path: root/Command/Fsck.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-06-09 15:12:40 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-06-09 15:12:40 -0400
commit416d0ea949e8c71f3d210cd27735694245c4fc1d (patch)
treed317e2efefeccc4bdd0042a5dad38a683cd52ac3 /Command/Fsck.hs
parent7cb7b22955dd4f6e1cf1aa5c8bff34e052bb5123 (diff)
add a hint about marking a key dead
Diffstat (limited to 'Command/Fsck.hs')
-rw-r--r--Command/Fsck.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs
index 6dccb285b..8988100b8 100644
--- a/Command/Fsck.hs
+++ b/Command/Fsck.hs
@@ -356,6 +356,8 @@ checkKeyNumCopies key afile numcopies = do
, do
ppuuids <- Remote.prettyPrintUUIDs "untrusted" untrustedlocations
warning $ missingNote file present numcopies ppuuids
+ when (fromNumCopies present == 0 && isNothing afile) $
+ showLongNote "(Avoid this check by running: git annex dead --key )"
return False
)
else return True