--- a/access/hgweb.go Tue May 23 00:31:49 2023 -0500
+++ b/access/hgweb.go Tue May 23 00:33:56 2023 -0500
@@ -3,6 +3,7 @@
func refreshHgWeb() error {
@@ -14,11 +15,17 @@
fmt.Fprintf(fp, "[paths]\n")
- for relativeRepoPath, repoPath := range repositories {
+ keys := make([]string, 0, len(repositories)) + for k := range repositories { + for _, relativeRepoPath := range keys { rootedPath := "/" + relativeRepoPath
// check if it's publicly readable
if CanRead("public", rootedPath) {
- fmt.Fprintf(fp, "%s = %s\n", rootedPath, repoPath)
+ fmt.Fprintf(fp, "%s = %s\n", rootedPath, repositories[relativeRepoPath])