Avoid any access to keys database in v5 mode repositories, which are not supposed to use that database.
This commit is contained in:
parent
50e63f75d1
commit
2619019630
4 changed files with 47 additions and 5 deletions
|
@ -55,6 +55,9 @@ versionSupportsUnlockedPointers = go <$> getVersion
|
|||
versionSupportsAdjustedBranch :: Annex Bool
|
||||
versionSupportsAdjustedBranch = versionSupportsUnlockedPointers
|
||||
|
||||
versionUsesKeysDatabase :: Annex Bool
|
||||
versionUsesKeysDatabase = versionSupportsUnlockedPointers
|
||||
|
||||
setVersion :: Version -> Annex ()
|
||||
setVersion = setConfig versionField
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue