From fc669100e5fdf300e2cfbbc1a1ca5d99b03cc564 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 8 Jan 2012 14:37:57 -0400 Subject: [PATCH] avoid showing remotes with no uuid in status The filtering of remotes with NoUUID is done in remoteMap, rather than remoteList because a few things should still act on remotes that have no uuid. Particularly sync. --- Remote.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Remote.hs b/Remote.hs index 63d32f4295..2716658388 100644 --- a/Remote.hs +++ b/Remote.hs @@ -93,7 +93,8 @@ enabledRemoteList = filterM (repoNotIgnored . repo) =<< remoteList {- Map of UUIDs of Remotes and their names. -} remoteMap :: Annex (M.Map UUID String) -remoteMap = M.fromList . map (\r -> (uuid r, name r)) <$> remoteList +remoteMap = M.fromList . map (\r -> (uuid r, name r)) . + filter (\r -> uuid r /= NoUUID) <$> remoteList {- Map of UUIDs and their descriptions. - The names of Remotes are added to suppliment any description that has