summaryrefslogtreecommitdiff
path: root/Command/AddUrl.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/AddUrl.hs')
-rw-r--r--Command/AddUrl.hs2
1 files changed, 0 insertions, 2 deletions
diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs
index 459fbc623..b27cb7f0f 100644
--- a/Command/AddUrl.hs
+++ b/Command/AddUrl.hs
@@ -54,8 +54,6 @@ perform url file pathdepth = ifAnnexed file addurl geturl
fast <- Annex.getState Annex.fast
if fast then nodownload url file else download url file
addurl (key, _backend) = do
- when (pathdepth /= Nothing) $
- error $ file ++ " already exists"
unlessM (liftIO $ Url.check url (keySize key)) $
error $ "failed to verify url: " ++ url
setUrlPresent key url