aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/dotgit/dotgit_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/filesystem/dotgit/dotgit_test.go')
-rw-r--r--storage/filesystem/dotgit/dotgit_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/filesystem/dotgit/dotgit_test.go b/storage/filesystem/dotgit/dotgit_test.go
index 098b559..63c9eb0 100644
--- a/storage/filesystem/dotgit/dotgit_test.go
+++ b/storage/filesystem/dotgit/dotgit_test.go
@@ -873,9 +873,10 @@ type notExistsFS struct {
paths []string
}
-func (f *notExistsFS) matches(filename string) bool {
+func (f *notExistsFS) matches(path string) bool {
+ p := filepath.ToSlash(path)
for _, n := range f.paths {
- if filename == n {
+ if p == n {
return true
}
}