diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-10-08 14:27:37 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-10-08 14:29:35 -0400 |
commit | bab88f3596c570346a3d069af9e3c8ed92e473c9 (patch) | |
tree | 32384db58de249ef11c524446d1e0bf757c5fa10 /Command/Uninit.hs | |
parent | 5434414bff35367aa62a4aaab0c4731a38dbe76e (diff) |
add lockContentShared
Also, rename lockContent to lockContentExclusive
inAnnexSafe should perhaps be eliminated, and instead use
`lockContentShared inAnnex`. However, I'm waiting on that, as there are
only 2 call sites for inAnnexSafe and it's fiddly.
Diffstat (limited to 'Command/Uninit.hs')
-rw-r--r-- | Command/Uninit.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Uninit.hs b/Command/Uninit.hs index c49cc4ba0..38e062002 100644 --- a/Command/Uninit.hs +++ b/Command/Uninit.hs @@ -105,7 +105,7 @@ removeUnannexed = go [] go c [] = return c go c (k:ks) = ifM (inAnnexCheck k $ liftIO . enoughlinks) ( do - lockContent k removeAnnex + lockContentExclusive k removeAnnex go c ks , go (k:c) ks ) |