avoid pre-commit check having to do with v5 unlocked files when in v6 mode

This commit is contained in:
Joey Hess 2015-12-15 14:09:36 -04:00
parent a983a3a7a2
commit d245a80518
Failed to extract signature

View file

@ -43,7 +43,7 @@ seek ps = lockPreCommitHook $ ifM isDirect
withWords startDirect ps
runAnnexHook preCommitAnnexHook
, do
ifM (liftIO Git.haveFalseIndex)
ifM (not <$> versionSupportsUnlockedPointers <&&> liftIO Git.haveFalseIndex)
( do
(fs, cleanup) <- inRepo $ Git.typeChangedStaged ps
whenM (anyM isOldUnlocked fs) $