aboutsummaryrefslogtreecommitdiff
path: root/Remote.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-12-23 14:08:04 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-12-23 14:08:04 -0400
commit1940e52793ff20cf1c48f78fef95985434ed7dee (patch)
treee0a8f5649a4c340ab8ca7a30c236c24f2297a203 /Remote.hs
parentb05c08b5c1ad0deacec8943128e1eec8362471a9 (diff)
skip repos without a description set when --in="" is specified
Picking one of probably several remotes with no description set was not useful behavior.
Diffstat (limited to 'Remote.hs')
-rw-r--r--Remote.hs1
1 files changed, 1 insertions, 0 deletions
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