error out when dropping from http repo

This commit is contained in:
Joey Hess 2011-08-16 21:20:14 -04:00
parent 790b0f3879
commit f5449aae16

View file

@ -141,8 +141,9 @@ keyUrl :: Git.Repo -> Key -> String
keyUrl r key = Git.repoLocation r ++ "/" ++ annexLocation key keyUrl r key = Git.repoLocation r ++ "/" ++ annexLocation key
dropKey :: Git.Repo -> Key -> Annex Bool dropKey :: Git.Repo -> Key -> Annex Bool
dropKey r key = dropKey r key
onRemote r (boolSystem, False) "dropkey" | Git.repoIsHttp r = error "dropping from http repo not supported"
| otherwise = onRemote r (boolSystem, False) "dropkey"
[ Params "--quiet --force" [ Params "--quiet --force"
, Param $ show key , Param $ show key
] ]