From dc274a680447c6eec8fdac46b9bc9f9c6378fbc1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 29 Sep 2020 12:11:50 -0400 Subject: [PATCH] fix inverted logic in recent commit --- Annex/CheckIgnore.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )