From abd50e01fbf08ddf4a71c243febe6474dfb566df Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 18 Feb 2012 12:05:13 -0400 Subject: don't fail with --pathdepth when file already exists --- Command/AddUrl.hs | 2 -- 1 file changed, 2 deletions(-) (limited to 'Command/AddUrl.hs') 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 -- cgit v1.2.3