{"thread":{"id":"28069","subject":"[PATCH] post-receive-email: Fix handling of hooks.emailmaxlines configuration option","startedAt":"2011-08-11T17:13:31Z","lastAt":"2011-08-11T17:13:31Z","messageCount":1,"participants":["Mike Crowe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"173284","messageId":"1313082811-1396-1-git-send-email-mac@mcrowe.com","threadId":"28069","inReplyTo":null,"subject":"[PATCH] post-receive-email: Fix handling of hooks.emailmaxlines configuration option","fromName":"Mike Crowe","fromEmail":"mac@mcrowe.com","sentAt":"2011-08-11T17:13:31Z","receivedAt":"2011-08-11T17:13:31Z","isPatch":true,"sender":{"key":"mac@mcrowe.com","avatar":"https://avatars.githubusercontent.com/u/93615?v=4"},"body":"Make the hooks.emailmaxlines configuration option work correctly\nagain. It looks like this was broken by 53cad691.\n\nSigned-off-by: Mike Crowe <mac@mcrowe.com>\n---\n contrib/hooks/post-receive-email |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email\nindex fa6d41a..ab6d298 100755\n--- a/contrib/hooks/post-receive-email\n+++ b/contrib/hooks/post-receive-email\n@@ -85,7 +85,6 @@ prep_for_email()\n \toldrev=$(git rev-parse $1)\n \tnewrev=$(git rev-parse $2)\n \trefname=\"$3\"\n-\tmaxlines=$4\n \n \t# --- Interpret\n \t# 0000->1234 (create)\n@@ -198,6 +197,8 @@ prep_for_email()\n generate_email()\n {\n \t# Email parameters\n+\tmaxlines=$1\n+\n \t# The email subject will contain the best description of the ref\n \t# that we can build from the parameters\n \tdescribe=$(git describe $rev 2>/dev/null)\n-- \n1.7.2.5\n"}]}