--- a/access/hgweb.go Fri Mar 31 16:55:53 2023 -0500
+++ b/access/hgweb.go Sat Apr 01 22:49:52 2023 -0500
@@ -24,14 +24,14 @@
// walk the reposPath, looking for .hg directories, when one is found,
// check if it is publicly readable, and if so, add it to the config file.
- filepath.Walk(absReposPath, func(filename string, info os.FileInfo, err error) error {
+ filepath.WalkDir(absReposPath, func(filename string, entry os.DirEntry, err error) error { // check if we're looking at a directory
// check if it is a .hg directory
- if !strings.HasSuffix(info.Name(), ".hg") {
+ if !strings.HasSuffix(entry.Name(), ".hg") {