consistently don't show sizes of empty repositories

This used to be the case, and when matching options are used, that code
path still omits them, so also omit them in the getRepoSize code path.
This commit is contained in:
Joey Hess 2024-08-17 14:58:36 -04:00
parent b62b58b50b
commit f985c58d8e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 6 additions and 1 deletions

View file

@ -654,7 +654,7 @@ cachedAllRepoData = do
usereposizes s = do
sizemap <- lift $ getRepoSizes True
deadset <- lift $ S.fromList <$> trustGet DeadTrusted
let sizemap' = M.withoutKeys sizemap deadset
let sizemap' = M.filter (> 0) $ M.withoutKeys sizemap deadset
lift $ unlessM (null <$> getUnmergedRefs)
warnunmerged
return $ s