routes: skip unopenable dirs
This commit is contained in:
parent
08255439fb
commit
8f8f205ce5
1 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue