Skip to contentSkip to conversation

post-receive-email: Fix handling of hooks.emailmaxlines configuration option

PATCH New Mike Crowe 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

Mike Crowe

author
#0 lore raw

PATCH 1/1 post-receive-email: Fix handling of hooks.emailmaxlines configuration option

Make the hooks.emailmaxlines configuration option work correctly again. It looks like this was broken by 53cad691.

---
 contrib/hooks/post-receive-email |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
contrib/hooks/post-receive-email +2 -1
index fa6d41a..ab6d298 100755
@@ -85,7 +85,6 @@ prep_for_email()
 	oldrev=$(git rev-parse $1)
 	newrev=$(git rev-parse $2)
 	refname="$3"
-	maxlines=$4
 
 	# --- Interpret
 	# 0000->1234 (create)
@@ -198,6 +197,8 @@ prep_for_email()
 generate_email()
 {
 	# Email parameters
+	maxlines=$1
+
 	# 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)
Signature · 1 line
1.7.2.5