diff options
Diffstat (limited to 'gitignore.go')
| -rw-r--r-- | gitignore.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitignore.go b/gitignore.go index 569e191..2c9fc4b 100644 --- a/gitignore.go +++ b/gitignore.go @@ -50,8 +50,8 @@ func (s *GitignoreStack) IsIgnored(relPath string) bool { continue } - posMatch := layer.posRules != nil && layer.posRules.MatchesPath(childRel) - negMatch := layer.negRules != nil && layer.negRules.MatchesPath(childRel) + posMatch := layer.posRules != nil && (layer.posRules.MatchesPath(childRel) || layer.posRules.MatchesPath(childRel+"/")) + negMatch := layer.negRules != nil && (layer.negRules.MatchesPath(childRel) || layer.negRules.MatchesPath(childRel+"/")) if negMatch { result = false |
