From 30c0f3eea0b2148902c4f4e94c6fa6a63251b665 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 5 Nov 2023 10:03:43 +0200 Subject: [PATCH] log errors from git.Open --- readme | 3 +++ routes/routes.go | 1 + 2 files changed, 4 insertions(+) diff --git a/readme b/readme index 99bd546..06876a7 100644 --- a/readme +++ b/readme @@ -72,6 +72,9 @@ NOTES or may not want this. • Pushing over https, while supported, is disabled because auth is a pain. Use ssh. +• Your remote's default branch must point to one of the listed + repo.mainBranch. (ref: + https://social.alexschroeder.ch/@alex/statuses/01HEA8T69WANTMZSTX0X5YF0WM) • Paths are unveil(2)'d on OpenBSD. diff --git a/routes/routes.go b/routes/routes.go index 0cf1c35..daace2f 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -45,6 +45,7 @@ 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 { + log.Println(err) continue }