Commit 1177268c8a611fc377c353a5ef4bb9416309a0d3

Tracey Emery 2020-01-28T23:21:58

don't display author email on summary or commit briefs, introduced with gw_tag updates

diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 66a55a7..f7bb586 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -1998,9 +1998,17 @@ gw_get_commit(struct gw_trans *gw_trans, struct gw_header *header)
 
 	header->committer_time =
 	    got_object_commit_get_committer_time(header->commit);
-	header->author = strdup(
-		gw_html_escape(got_object_commit_get_author(header->commit))
-	);
+
+	if (gw_trans->action != GW_BRIEFS && gw_trans->action != GW_SUMMARY) {
+		header->author = strdup(
+	 	    gw_html_escape(got_object_commit_get_author(header->commit))
+		);
+	} else {
+		header->author = strdup(
+		    got_object_commit_get_author(header->commit)
+		);
+	}
+
 	header->committer = strdup(
 		gw_html_escape(got_object_commit_get_committer(header->commit))
 	);