summaryrefslogtreecommitdiff
path: root/Command.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command.hs')
-rw-r--r--Command.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command.hs b/Command.hs
index bedb18cc9..bebbf3f1b 100644
--- a/Command.hs
+++ b/Command.hs
@@ -187,7 +187,7 @@ filterFiles l = do
let regexp = compile (toregex exclude) []
return $ filter (notExcluded regexp) l'
where
- notState f = not $ isPrefixOf stateLoc f
+ notState f = not $ isPrefixOf stateDir f
notExcluded r f = case match r f [] of
Nothing -> True
Just _ -> False