routes: skip unopenable dirs
Anirudh Oppiliappan x@icyphox.sh
Sun, 18 Dec 2022 11:43:50 +0530
1 files changed,
2 insertions(+),
3 deletions(-)
jump to
M
routes/routes.go
→
routes/routes.go
@@ -38,9 +38,8 @@ for _, dir := range dirs {
path := filepath.Join(d.c.Repo.ScanPath, dir.Name()) gr, err := git.Open(path, "") if err != nil { - d.Write500(w) - log.Printf("opening dir %s: %s", path, err) - return + log.Println(err) + continue } c, err := gr.LastCommit()