fix/forbidden (#58) #60

Merged
张泊明518370910136 merged 7 commits from fix/forbidden into master 2024-10-18 14:41:10 +08:00
Showing only changes of commit eb0ad570ee - Show all commits

View File

@ -45,7 +45,7 @@ func getForbiddens(root string, fileList []string, localList string) ([]string,
}
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
}
} else {