Compare commits

..

No commits in common. "db2f2e859bd20627eaaead85a9f2db3e1ac6d0dd" and "f115bb49c8f416402d86ad904cabd198c4680f87" have entirely different histories.

2 changed files with 8 additions and 13 deletions

View File

@ -55,14 +55,6 @@ func main() {
return
}
setupSlog()
slog.Info("start repo-health-checker", "version", Version)
slog.Debug("cli args",
"repoSize", size,
"localList", localList,
"checkFileNameList", checkFileNameList,
"checkFileSumList", checkFileSumList,
"meta", metaFile,
)
var err error
err = healthcheck.RepoSize(*size)
if err != nil {

View File

@ -20,7 +20,13 @@ func getForbiddens(root string) ([]string, error) {
return false
})
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
var err error
if err != nil {
return nil, err
}
err = filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
@ -32,10 +38,7 @@ 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 {