Skip to content

Commit

Permalink
fix: Fix externals not being ignored by .chezmoiignore
Browse files Browse the repository at this point in the history
  • Loading branch information
stablestud committed Aug 27, 2023
1 parent ba18648 commit ae55c1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/chezmoi/sourcestate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,9 @@ func (s *SourceState) addPatterns(
include = patternSetExclude
}
pattern := dir.JoinString(text).String()
if !strings.HasSuffix(pattern, "/**") {
pattern += "/**"
}
if err := patternSet.add(pattern, include); err != nil {
return fmt.Errorf("%s:%d: %w", sourceAbsPath, lineNumber, err)
}
Expand Down

0 comments on commit ae55c1e

Please sign in to comment.