summaryrefslogtreecommitdiff
path: root/Remote.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-01-19 15:24:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-01-19 15:24:05 -0400
commit90319afa41ca6d8a9ffe00d787dc3dcdff320f00 (patch)
tree68b9a324b9feb7ed45cc7ab24dc82e120cc26ff3 /Remote.hs
parentd36525e9745b90cc04abfeac6500ff646cb9c89b (diff)
fsck --from
Fscking a remote is now supported. It's done by retrieving the contents of the specified files from the remote, and checking them, so can be an expensive operation. (Several optimisations are possible, to speed it up, of course.. This is the slow and stupid remote fsck to start with.) Still, if the remote is a special remote, or a git repository that you cannot run fsck in locally, it's nice to have the ability to fsck it. If you have any directory special remotes, now would be a good time to fsck them, in case you were hit by the data loss bug fixed in the previous release!
Diffstat (limited to 'Remote.hs')
-rw-r--r--Remote.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Remote.hs b/Remote.hs
index 7feb84d61..133d3e274 100644
--- a/Remote.hs
+++ b/Remote.hs
@@ -212,7 +212,5 @@ forceTrust level remotename = do
- in the local repo, not on the remote. The process of transferring the
- key to the remote, or removing the key from it *may* log the change
- on the remote, but this cannot always be relied on. -}
-logStatus :: Remote -> Key -> Bool -> Annex ()
-logStatus remote key present = logChange key (uuid remote) status
- where
- status = if present then InfoPresent else InfoMissing
+logStatus :: Remote -> Key -> LogStatus -> Annex ()
+logStatus remote key present = logChange key (uuid remote) present