diff --git a/README.md b/README.md
index 5a723e55161cbc997e4cbeec226fd7bd9555e258..fd92d5cb3d4c1190bbd31a2831af8005bcaccb28 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
# Cerrado
-Read only single user mail based forge for git.
+Self single user mail based forge for git.
diff --git a/pkg/service/git.go b/pkg/service/git.go
index 7418d971dffc7b2ff26d9ab900e94d79bba2b75a..0907924cf24789e3a8f5a558231b7af319e409d1 100644
--- a/pkg/service/git.go
+++ b/pkg/service/git.go
@@ -3,12 +3,9 @@
import (
"errors"
"log/slog"
- "os"
- "path"
"git.gabrielgio.me/cerrado/pkg/config"
"git.gabrielgio.me/cerrado/pkg/git"
- "git.gabrielgio.me/cerrado/pkg/u"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
)
@@ -66,19 +63,9 @@ slog.Error("Error fetching head", "repository", r.Path, "error", err)
continue
}
- d := path.Join(r.Path, "description")
- description := ""
- if u.FileExist(d) {
- if b, err := os.ReadFile(d); err == nil {
- description = string(b)
- } else {
- slog.Error("Error loading description file", "err", err)
- }
- }
-
repos = append(repos, &Repository{
Name: r.Name,
- Description: description,
+ Description: r.Description,
LastCommitDate: obj.Author.When.Format(timeFormat),
Ref: head.Name().Short(),
})
diff --git a/pkg/worker/http.go b/pkg/worker/http.go
index c4f99504bf9d8968e05cd4f27e8375af9cad7909..1559ba2eae04e2da705285126dca07f636498a7b 100644
--- a/pkg/worker/http.go
+++ b/pkg/worker/http.go
@@ -3,6 +3,7 @@
import (
"context"
"errors"
+ "log/slog"
"net"
"net/http"
"net/url"
@@ -36,6 +37,7 @@ Handler: s.handler,
}
go func() {
+ slog.Info("Serving", "addr", listen.Addr().String(), "network", listen.Addr().Network())
done <- server.Serve(listen)
}()