summaryrefslogtreecommitdiff
path: root/Git
diff options
context:
space:
mode:
Diffstat (limited to 'Git')
-rw-r--r--Git/LsFiles.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Git/LsFiles.hs b/Git/LsFiles.hs
index 1006be808..3f001f513 100644
--- a/Git/LsFiles.hs
+++ b/Git/LsFiles.hs
@@ -41,7 +41,7 @@ mkFile :: FilePath -> CommandParam
mkFile = File . concatMap go
where
go c
- | c == '*' = ['\\', c]
+ | c `elem` "*?[]" = ['\\', c]
| otherwise = [c]
{- Scans for files that are checked into git at the specified locations. -}