Skip to content

Commit

Permalink
post-receive-email: fix accidental removal of a trailing space in sig…
Browse files Browse the repository at this point in the history
…nature 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 RFC 3676)

a6080a0 (War on whitespace, 2007-06-07) 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.

Signed-off-by: Andy Parkins <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
andyparkins authored and gitster committed Apr 22, 2008
1 parent 85d17a1 commit 71bd81a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/hooks/post-receive-email
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,12 @@ generate_email_header()

generate_email_footer()
{
SPACE=" "
cat <<-EOF
hooks/post-receive
--
--${SPACE}
$projectdesc
EOF
}
Expand Down

0 comments on commit 71bd81a

Please sign in to comment.