From 8f8f205ce5c806d0753b76de1dc0e2e135578437 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 18 Dec 2022 11:43:50 +0530 Subject: routes: skip unopenable dirs --- routes/routes.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/routes/routes.go b/routes/routes.go index 0cd3308..12225ef 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -38,9 +38,8 @@ func (d *deps) Index(w http.ResponseWriter, r *http.Request) { 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() -- cgit