routes: skip unopenable dirs
This commit is contained in:
parent
08255439fb
commit
8f8f205ce5
|
@ -38,9 +38,8 @@ func (d *deps) Index(w http.ResponseWriter, r *http.Request) {
|
||||||
path := filepath.Join(d.c.Repo.ScanPath, dir.Name())
|
path := filepath.Join(d.c.Repo.ScanPath, dir.Name())
|
||||||
gr, err := git.Open(path, "")
|
gr, err := git.Open(path, "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
d.Write500(w)
|
log.Println(err)
|
||||||
log.Printf("opening dir %s: %s", path, err)
|
continue
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c, err := gr.LastCommit()
|
c, err := gr.LastCommit()
|
||||||
|
|
Loading…
Reference in New Issue