Skip to contentSkip to conversation

post-receive-email: fix accidental removal of a trailing space in signature line

PATCH New Andy Parkins 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 post-receive-email: fix accidental removal of a trailing space in signature line

post-receive-email adds a signature to the end of emails in generate_email_footer(). The signature was separated from the main email body using the standard string "-- ". (see rfc3676)

In revision a6080a0a44d5, Junio's "war on whitespace" removed the trailing whitespace from "-- ", leaving it as "--", which is not a correct signature separator.

This patch restores the missing space, but does it in a way that will not set off the trailing whitespace alarms.

---
 contrib/hooks/post-receive-email |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
contrib/hooks/post-receive-email +2 -1
index 62a740c..4136895 100644
@@ -202,11 +202,12 @@ generate_email_header()
 
 generate_email_footer()
 {
+	SPACE=" "
 	cat <<-EOF
 
 
 	hooks/post-receive
-	--
+	--${SPACE}
 	$projectdesc
 	EOF
 }
Signature · 1 line
1.5.5.29.g7134