fix inverted logic in recent commit

This commit is contained in:
Joey Hess 2020-09-29 12:11:50 -04:00
parent e44a132085
commit dc274a6804
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -25,7 +25,7 @@ newtype CheckGitIgnore = CheckGitIgnore Bool
checkIgnored :: CheckGitIgnore -> FilePath -> Annex Bool
checkIgnored (CheckGitIgnore False) _ = pure False
checkIgnored (CheckGitIgnore True) file =
ifM (not <$> Annex.getState Annex.force)
ifM (Annex.getState Annex.force)
( pure False
, withCheckIgnoreHandle $ \h -> liftIO $ Git.checkIgnored h file
)