diff --git a/Command/PreCommit.hs b/Command/PreCommit.hs index 71a9f86f8c..cbf7f6e3de 100644 --- a/Command/PreCommit.hs +++ b/Command/PreCommit.hs @@ -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) $