From a7b52fa2b3efbd591423a2445e034280c7377fd4 Mon Sep 17 00:00:00 2001 From: avadesian Date: Tue, 24 Aug 2021 17:19:55 +0800 Subject: [PATCH] ignore committer without email --- routers/repo/view.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routers/repo/view.go b/routers/repo/view.go index 945f6b0e0..1ee47e12e 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -590,6 +590,9 @@ func Home(ctx *context.Context) { if err == nil && contributors != nil { var contributorInfos []*ContributorInfo for _, c := range contributors { + if strings.Compare(c.Email,"") == 0 { + continue + } // get user info from committer email user, err := models.GetUserByEmail(c.Email) if err == nil {