fix: not ignore gitea

This commit is contained in:
Hydraallen 2024-10-15 16:58:02 +08:00
parent 7654c7e6f3
commit eb0ad570ee

View File

@ -45,7 +45,7 @@ func getForbiddens(root string, fileList []string, localList string) ([]string,
} }
if info.IsDir() { if info.IsDir() {
if info.Name() == ".git" || info.Name() == ".gitea" || info.Name() == "ci" || (localList != "" && inString(info.Name(), dirs)) { if info.Name() == ".git" || (localList != "" && inString(info.Name(), dirs)) {
return filepath.SkipDir return filepath.SkipDir
} }
} else { } else {