avoid pre-commit hook messing up new-style unlocked files in v6 repo

This commit is contained in:
Joey Hess 2015-12-09 15:18:25 -04:00
parent 05b598a057
commit 751120c171
Failed to extract signature
4 changed files with 24 additions and 7 deletions

View file

@ -43,6 +43,12 @@ versionSupportsDirectMode = go <$> getVersion
go (Just "6") = False
go _ = True
versionSupportsUnlockedPointers :: Annex Bool
versionSupportsUnlockedPointers = go <$> getVersion
where
go (Just "6") = True
go _ = False
setVersion :: Version -> Annex ()
setVersion = setConfig versionField