diff --git a/Annex/CheckIgnore.hs b/Annex/CheckIgnore.hs index c1cee46670..e3252d8cd9 100644 --- a/Annex/CheckIgnore.hs +++ b/Annex/CheckIgnore.hs @@ -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 )