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 44e3feb5c6 - Show all commits

View File

@ -16,7 +16,12 @@ func getForbiddens(root string) ([]string, error) {
var matches []string var matches []string
// Create a gitignore instance from the .gitignore file // Create a gitignore instance from the .gitignore file
ignore, err := gitignore.NewFromFile(filepath.Join(root, ".gitignore")) ignore := gitignore.NewRepositoryWithCache(root, ".gitignore", gitignore.NewCache(), func(e gitignore.Error) bool {
return false
})
var err error
if err != nil { if err != nil {
return nil, err return nil, err
} }