avoid changing git-annex info behavior
authorJoey Hess <joeyh@joeyh.name>
Tue, 13 Aug 2024 18:15:43 +0000 (14:15 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 13 Aug 2024 18:17:20 +0000 (14:17 -0400)
5afbea25e7751a8841ac42db3822b81ea68f31c1 changed it to ignore journal
files that did not correspond to a key in the git-annex branch. However,
when there is a private journal, that can happen.

Neither behavior is fully correct, so keep the old incorrect behavior
rather than introducing a new differently incorrect behavior.

I plan to eventually make git-annex info use Annex.reposizes instead of
calculating it itself, and once Annex.reposizes handles this all
correctly, this will be a moot problem.

Command/Info.hs

index e35a646d39c8eef4c302e9634ae5994dc86cfb93..2a061efdfb40b65d09143cd3058f14d02a5cf61c 100644 (file)
@@ -641,7 +641,7 @@ cachedAllRepoData = do
                Just _ -> return s
                Nothing -> do
                        matcher <- lift getKeyOnlyMatcher
-                       r <- lift $ overLocationLogs True (emptyKeyInfo, mempty) $ \k locs (d, rd) -> do
+                       r <- lift $ overLocationLogs False (emptyKeyInfo, mempty) $ \k locs (d, rd) -> do
                                ifM (matchOnKey matcher k)
                                        ( do
                                                alivelocs <- snd