diff --git a/Remote.hs b/Remote.hs index aa86934143..10bf9d7694 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