diff options
author | Javi Fontan <jfontan@gmail.com> | 2023-03-04 20:12:17 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2023-03-07 13:33:20 +0100 |
commit | 660071d48cfe9728953e4a84960d40deb7078811 (patch) | |
tree | 66a5876a3c6f2b5baf343482f1c43b039d343fc6 | |
parent | 16cc29310be7089bbc8d54d79d608834d2753adc (diff) | |
download | go-git-660071d48cfe9728953e4a84960d40deb7078811.tar.gz |
dotgit: fix deleted references test in windows
Signed-off-by: Javi Fontan <jfontan@gmail.com>
-rw-r--r-- | storage/filesystem/dotgit/dotgit_test.go | 5 |
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 } } |