avoid pre-commit check having to do with v5 unlocked files when in v6 mode
This commit is contained in:
parent
a983a3a7a2
commit
d245a80518
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ seek ps = lockPreCommitHook $ ifM isDirect
|
||||||
withWords startDirect ps
|
withWords startDirect ps
|
||||||
runAnnexHook preCommitAnnexHook
|
runAnnexHook preCommitAnnexHook
|
||||||
, do
|
, do
|
||||||
ifM (liftIO Git.haveFalseIndex)
|
ifM (not <$> versionSupportsUnlockedPointers <&&> liftIO Git.haveFalseIndex)
|
||||||
( do
|
( do
|
||||||
(fs, cleanup) <- inRepo $ Git.typeChangedStaged ps
|
(fs, cleanup) <- inRepo $ Git.typeChangedStaged ps
|
||||||
whenM (anyM isOldUnlocked fs) $
|
whenM (anyM isOldUnlocked fs) $
|
||||||
|
|
Loading…
Add table
Reference in a new issue