Remote.Git lockContent works with annex+http urls
This commit is contained in:
parent
9fa9678585
commit
97836aafba
3 changed files with 61 additions and 40 deletions
|
@ -521,6 +521,14 @@ lockKey r st key callback = do
|
|||
|
||||
lockKey' :: Git.Repo -> Remote -> State -> Key -> (VerifiedCopy -> Annex r) -> Annex r
|
||||
lockKey' repo r st@(State connpool duc _ _ _) key callback
|
||||
| isP2PHttp r = do
|
||||
showLocking r
|
||||
p2pHttpClient r giveup (clientLockContent key) >>= \case
|
||||
LockResult True (Just lckid) ->
|
||||
p2pHttpClient r failedlock $
|
||||
clientKeepLocked lckid (uuid r)
|
||||
failedlock callback
|
||||
_ -> failedlock
|
||||
| not $ Git.repoIsUrl repo = ifM duc
|
||||
( guardUsable repo failedlock $ do
|
||||
inorigrepo <- Annex.makeRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue