From: Joey Hess Date: Tue, 15 Dec 2015 18:09:36 +0000 (-0400) Subject: avoid pre-commit check having to do with v5 unlocked files when in v6 mode X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~320^2~184^2~46 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d245a805181e7b12ae7a01686fb598b147f6dbd5;p=git-annex.git avoid pre-commit check having to do with v5 unlocked files when in v6 mode --- 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) $