skip repos without a description set when --in="" is specified

Picking one of probably several remotes with no description set was not
useful behavior.
This commit is contained in:
Joey Hess 2011-12-23 14:08:04 -04:00
parent b05c08b5c1
commit 1940e52793

View file

@ -112,6 +112,7 @@ byName' n = do
- .git/config. -}
nameToUUID :: String -> Annex UUID
nameToUUID "." = getUUID -- special case for current repo
nameToUUID "" = error "no remote specified"
nameToUUID n = byName' n >>= go
where
go (Right r) = return $ uuid r