diff options
author | Joey Hess <joey@kitenet.net> | 2012-02-18 12:05:13 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-02-18 12:05:13 -0400 |
commit | abd50e01fbf08ddf4a71c243febe6474dfb566df (patch) | |
tree | 303904cd8b27ed9ce9b115b5bffc75f3ee24b40d | |
parent | 0cbbf0da793f6bbffe989007a70953a7593e6841 (diff) |
don't fail with --pathdepth when file already exists
-rw-r--r-- | Command/AddUrl.hs | 2 |
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 |