diff options
author | Andy Parkins <andyparkins@gmail.com> | 2008-04-21 14:44:44 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-21 23:36:56 -0700 |
commit | 71bd81ade2973a304889d94426c922cc096019a2 (patch) | |
tree | f7fe97f20b12d57113bb9b3cd4db6828aeb13031 /contrib/hooks | |
parent | 85d17a123ba59b90744e311e40f80fd8838fbdc5 (diff) | |
download | git-71bd81ade2973a304889d94426c922cc096019a2.tar.gz git-71bd81ade2973a304889d94426c922cc096019a2.tar.xz |
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 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 <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/hooks')
-rw-r--r-- | contrib/hooks/post-receive-email | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email index 62a740c48..41368950d 100644 --- a/contrib/hooks/post-receive-email +++ b/contrib/hooks/post-receive-email @@ -202,11 +202,12 @@ generate_email_header() generate_email_footer() { + SPACE=" " cat <<-EOF hooks/post-receive - -- + --${SPACE} $projectdesc EOF } |