summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-02-18 12:05:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-02-18 12:05:13 -0400
commitabd50e01fbf08ddf4a71c243febe6474dfb566df (patch)
tree303904cd8b27ed9ce9b115b5bffc75f3ee24b40d
parent0cbbf0da793f6bbffe989007a70953a7593e6841 (diff)
don't fail with --pathdepth when file already exists
-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