Handle .stignore correctly on Windows (fixes #369)
This commit is contained in:
@@ -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", ".*"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user