git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] contrib/hooks/post-receive-email: remove cruft, $committer is not used

From
Gerrit Pape <pape@smarden.org>
Date
Nov 8, 2007, 12:11 UTC
Message-ID
<20071108121157.9749.qmail@db594f724cf2e2.315fe32.mid.smarden.org>
In-Reply-To
<7vode52hag.fsf@gitster.siamese.dyndns.org>
Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 contrib/hooks/post-receive-email |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index 3904c18..7511ea0 100644
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -156,10 +156,6 @@ generate_email()
 	fi
 
 	# Email parameters
-	# The committer will be obtained from the latest existing rev; so
-	# for a deletion it will be the oldrev, for the others, then newrev
-	committer=$(git show --pretty=full -s $rev | sed -ne "s/^Commit: //p" |
-		sed -ne 's/\(.*\) </"\1" </p')
 	# The email subject will contain the best description of the ref
 	# that we can build from the parameters
 	describe=$(git describe $rev 2>/dev/null)
-- 
1.5.3.5
Previous: Andreas EricssonNext: Benoit Sigoure
Message 4 of 5 in “contrib/hooks/post-receive-email: add a From: line to the email header”
  1. contrib/hooks/post-receive-email: add a From: line to the email headerGerrit Pape, Nov 8, 2007
  2. Junio C HamanoNov 8, 2007
  3. Andreas EricssonNov 8, 2007
  4. contrib/hooks/post-receive-email: remove cruft, $committer is not usedGerrit Pape, Nov 8, 2007
  5. Benoit SigoureJan 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.