error out when dropping from http repo
This commit is contained in:
parent
790b0f3879
commit
f5449aae16
1 changed files with 3 additions and 2 deletions
|
@ -141,8 +141,9 @@ keyUrl :: Git.Repo -> Key -> String
|
|||
keyUrl r key = Git.repoLocation r ++ "/" ++ annexLocation key
|
||||
|
||||
dropKey :: Git.Repo -> Key -> Annex Bool
|
||||
dropKey r key =
|
||||
onRemote r (boolSystem, False) "dropkey"
|
||||
dropKey r key
|
||||
| Git.repoIsHttp r = error "dropping from http repo not supported"
|
||||
| otherwise = onRemote r (boolSystem, False) "dropkey"
|
||||
[ Params "--quiet --force"
|
||||
, Param $ show key
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue