lib/ignore: Don't match root (".")
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4122
This commit is contained in:
@@ -163,7 +163,7 @@ func (m *Matcher) patternsUnchanged(file string) bool {
|
||||
}
|
||||
|
||||
func (m *Matcher) Match(file string) (result Result) {
|
||||
if m == nil {
|
||||
if m == nil || file == "." {
|
||||
return resultNotMatched
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user