aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-05-27 20:20:20 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-05-27 20:20:20 -0400
commit001edb008aee205a4f1885fe5f3335b2e2a47c33 (patch)
treef9f9b75695376aec60853ab22b74ca1efa6f2e28
parent224977900d1b9961149b753df33b54d8045448ef (diff)
Fix bug in --exclude introduced in 0.20110516.
-rw-r--r--Command.hs2
-rw-r--r--debian/changelog1
2 files changed, 2 insertions, 1 deletions
diff --git a/Command.hs b/Command.hs
index abbe897b5..fd49531f4 100644
--- a/Command.hs
+++ b/Command.hs
@@ -191,7 +191,7 @@ filterFiles l = do
else return $ filter (notExcluded $ wildsRegex exclude) l'
where
notState f = not $ stateDir `isPrefixOf` f
- notExcluded r f = isJust $ match r f []
+ notExcluded r f = isNothing $ match r f []
wildsRegex :: [String] -> Regex
wildsRegex ws = compile regex []
diff --git a/debian/changelog b/debian/changelog
index 76495c901..1834bea15 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ git-annex (0.20110522) UNRELEASED; urgency=low
* Closer emulation of git's behavior when told to use "foo/.git" as a
git repository instead of just "foo". Closes: #627563
+ * Fix bug in --exclude introduced in 0.20110516.
-- Joey Hess <joeyh@debian.org> Sun, 22 May 2011 14:03:42 -0400