From 1e14d4d35d90923a6108be568185a3f0961bdd2e Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Tue, 8 Oct 2024 20:18:05 +0200 Subject: fix: User author info instead of committer Make use of the correct information when displaying commit info. --- templates/commit.qtpl | 2 +- templates/commit.qtpl.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/commit.qtpl b/templates/commit.qtpl index 2b58864..ae26a51 100644 --- a/templates/commit.qtpl +++ b/templates/commit.qtpl @@ -12,7 +12,7 @@ {% endif %}
- {%s c.Committer.Name %} + {%s c.Author.Name %}
diff --git a/templates/commit.qtpl.go b/templates/commit.qtpl.go index 9a25741..fac2e88 100644 --- a/templates/commit.qtpl.go +++ b/templates/commit.qtpl.go @@ -77,11 +77,11 @@ func StreamCommit(qw422016 *qt422016.Writer, name string, c *object.Commit, show //line templates/commit.qtpl:15 qw422016.N().S(`" href="mailto:`) //line templates/commit.qtpl:15 - qw422016.E().S(c.Committer.Email) + qw422016.E().S(c.Author.Email) //line templates/commit.qtpl:15 qw422016.N().S(`">`) //line templates/commit.qtpl:15 - qw422016.E().S(c.Committer.Name) + qw422016.E().S(c.Author.Name) //line templates/commit.qtpl:15 qw422016.N().S(`
-- cgit v1.2.3