diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go
index 4c5d19804b31ba6bd0d1b770fc8c8d93ba70d472..096303374b4fa36a7a62cf4f97a4bea41cb44c73 100644
--- a/pkg/handler/git/handler.go
+++ b/pkg/handler/git/handler.go
@@ -2,6 +2,7 @@ package git
import (
"bytes"
+ "errors"
"fmt"
"io"
"log/slog"
@@ -160,6 +161,16 @@ return err
}
file, err := g.gitService.GetAbout(name)
+ if errors.Is(err, object.ErrFileNotFound) {
+ templates.WritePageTemplate(w, &templates.GitItemPage{
+ Name: name,
+ Ref: ref.Name().Short(),
+ GitItemBase: &templates.GitItemAboutPage{
+ About: []byte("About file not configured properly"),
+ },
+ })
+ return nil
+ }
if err != nil {
return err
}