summaryrefslogtreecommitdiff
path: root/src/reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.go')
-rw-r--r--src/reader.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reader.go b/src/reader.go
index 679cb636..a71f9697 100644
--- a/src/reader.go
+++ b/src/reader.go
@@ -277,6 +277,9 @@ func (r *Reader) readFiles(roots []string, opts walkerOpts, ignores []string) bo
ignoresFull := []string{}
ignoresSuffix := []string{}
sep := string(os.PathSeparator)
+ if _, ok := os.LookupEnv("MSYSTEM"); ok {
+ sep = "/"
+ }
for _, ignore := range ignores {
if strings.ContainsRune(ignore, os.PathSeparator) {
if strings.HasPrefix(ignore, sep) {