all repos — legit @ 8f8f205ce5c806d0753b76de1dc0e2e135578437

fork of git.icyphox.sh/legit

routes: skip unopenable dirs
Anirudh Oppiliappan x@icyphox.sh
Sun, 18 Dec 2022 11:43:50 +0530
commit

8f8f205ce5c806d0753b76de1dc0e2e135578437

parent

08255439fb30e5262794344f4a83bd4538c8606f

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M routes/routes.goroutes/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()