diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-18 11:43:50 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-18 11:43:50 +0530 |
commit | 8f8f205ce5c806d0753b76de1dc0e2e135578437 (patch) | |
tree | 85764e801ed50f1ac8fe0e8c826036288461b0e5 /routes | |
parent | 08255439fb30e5262794344f4a83bd4538c8606f (diff) | |
download | legit-8f8f205ce5c806d0753b76de1dc0e2e135578437.tar.gz legit-8f8f205ce5c806d0753b76de1dc0e2e135578437.tar.bz2 legit-8f8f205ce5c806d0753b76de1dc0e2e135578437.zip |
routes: skip unopenable dirs
Diffstat (limited to 'routes')
-rw-r--r-- | routes/routes.go | 5 |
1 files 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() |