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 83b6cb6b2c - Show all commits

View File

@ -25,7 +25,10 @@ func getForbiddens(root string, fileList []string) ([]string, error) {
return err return err
} }
if info.IsDir() && info.Name() == ".git" { if info.IsDir() && (info.Name() == ".") {
return nil
}
if info.IsDir() && (info.Name() == ".git") {
return filepath.SkipDir return filepath.SkipDir
} else { } else {
match := ignore.Relative(info.Name(), true) match := ignore.Relative(info.Name(), true)