fix inverted logic in recent commit
authorJoey Hess <joeyh@joeyh.name>
Tue, 29 Sep 2020 16:11:50 +0000 (12:11 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 29 Sep 2020 16:11:50 +0000 (12:11 -0400)
Annex/CheckIgnore.hs

index c1cee46670ade55cc97d5cd9eee5afa06190e8b4..e3252d8cd9f8f35c5575ea0289922ca5c6c0ef1b 100644 (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
                )