summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2018-04-26 16:13:05 -0400
committerJoey Hess <joeyh@joeyh.name>2018-04-26 16:13:05 -0400
commit2fc768ce728fdf183b6176dbf749774f9ce1af06 (patch)
tree7620dd293c42dfc3a1c1a79b060abad7b0327978 /Command
parentbea0ad220a68138dc0a43d0c86bb2353ecf92d2c (diff)
avoid git annex info remote buffering list of keys
This leaves git annex unused --from remote still using loggedKeysFor and buffering more than ought to be necessary, but I can't see a way to improve that.
Diffstat (limited to 'Command')
-rw-r--r--Command/Info.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Command/Info.hs b/Command/Info.hs
index cc9c1b5fe0..c9a314056a 100644
--- a/Command/Info.hs
+++ b/Command/Info.hs
@@ -525,7 +525,11 @@ cachedRemoteData u = do
case M.lookup u (repoData s) of
Just v -> return v
Nothing -> do
- v <- foldKeys <$> lift (loggedKeysFor u)
+ let combinedata d uk = finishCheck uk >>= \case
+ Nothing -> return d
+ Just k -> return $ addKey k d
+ v <- lift $ foldM combinedata emptyKeyData
+ =<< loggedKeysFor' u
put s { repoData = M.insert u v (repoData s) }
return v