summaryrefslogtreecommitdiff
path: root/Command/Fsck.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-05-06 14:45:20 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-05-06 14:45:20 -0400
commit137cac6e685732504da466a05590b69ce0eb93a7 (patch)
treea407edcd655a491a9950745bad39e8cbfe7b3525 /Command/Fsck.hs
parent321998afc69706a1739fac8c1f697688f6cd1c84 (diff)
fsck: Ignore error recording the fsck in the activity log, which can happen when running fsck in a read-only repository. Closes: #698559 (fsck can still need to write to the repository if it find problems, but a successful fsck can be done read-only)
Diffstat (limited to 'Command/Fsck.hs')
-rw-r--r--Command/Fsck.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs
index 46d7c2e77..be59484d9 100644
--- a/Command/Fsck.hs
+++ b/Command/Fsck.hs
@@ -76,7 +76,7 @@ seek ps = do
(withFilesInGit $ whenAnnexed $ start from i)
ps
withFsckDb i FsckDb.closeDb
- recordActivity Fsck u
+ void $ tryIO $ recordActivity Fsck u
start :: Maybe Remote -> Incremental -> FilePath -> Key -> CommandStart
start from inc file key = do