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.
This commit is contained in:
parent
dc1d51b2df
commit
fc669100e5
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue