We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cf7f97 commit e0a2cf4Copy full SHA for e0a2cf4
internal/util/pack.go
@@ -83,10 +83,11 @@ func PackZipWithoutGitIgnoreFiles() ([]byte, error) {
83
84
// Check ignore patterns before processing
85
if ignoreObject != nil {
86
+ // Normalize path separators to forward slashes for cross-platform gitignore matching
87
+ checkPath := filepath.ToSlash(path)
88
// For directories, we need to check with trailing slash for proper gitignore matching
- checkPath := path
89
if info.IsDir() {
- checkPath = path + "/"
90
+ checkPath = checkPath + "/"
91
}
92
93
if ignoreObject.MatchesPath(checkPath) {
0 commit comments