From 1940e52793ff20cf1c48f78fef95985434ed7dee Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 23 Dec 2011 14:08:04 -0400 Subject: skip repos without a description set when --in="" is specified Picking one of probably several remotes with no description set was not useful behavior. --- Remote.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/Remote.hs b/Remote.hs index aa8693414..10bf9d769 100644 --- a/Remote.hs +++ b/Remote.hs @@ -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 -- cgit v1.2.3