Handle .stignore correctly on Windows (fixes #369)

This commit is contained in:
Jakob Borg
2014-06-16 16:18:19 +02:00
parent 26ebbee877
commit 874d6760d4
3 changed files with 11 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ var testdata = []struct {
}
var correctIgnores = map[string][]string{
"": {".*", "quux"},
".": {".*", "quux"},
}
func TestWalk(t *testing.T) {
@@ -88,7 +88,7 @@ func TestWalkError(t *testing.T) {
func TestIgnore(t *testing.T) {
var patterns = map[string][]string{
"": {"t2"},
".": {"t2"},
"foo": {"bar", "z*"},
"foo/baz": {"quux", ".*"},
}