fix(healthcheck): tmp fix for ignoring stdout & stderr file again
This commit is contained in:
parent
db2f2e859b
commit
9a57b701fd
|
@ -32,15 +32,15 @@ func getForbiddens(root string) ([]string, error) {
|
|||
return nil
|
||||
}
|
||||
}
|
||||
// TODO: remove this temporary fix for stdout and stderr
|
||||
if path == root && (info.Name() == "stdout" || info.Name() == "stderr") {
|
||||
return nil
|
||||
}
|
||||
// Get the relative path to the git repo root
|
||||
relPath, err := filepath.Rel(root, path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// TODO: remove this temporary fix for stdout and stderr
|
||||
if relPath == "stdout" || relPath == "stderr" {
|
||||
return nil
|
||||
}
|
||||
match := ignore.Relative(relPath, true)
|
||||
|
||||
// Check if the relative file path should be ignored based on the .gitignore rules
|
||||
|
|
Loading…
Reference in New Issue
Block a user