summaryrefslogtreecommitdiff
path: root/Remote.hs
diff options
context:
space:
mode:
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