From 8dfcde89c61e30af42e06b6a995ca092e50ea81f Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Thu, 11 Dec 2008 20:27:21 +0000 Subject: [PATCH 2/3] bug#506445: hooks/post-receive-email: set encoding to utf-8 On Fri, Nov 21, 2008 at 05:42:47PM +0300, Alexander Gerasiov wrote: > Hi there. git generates logs in utf-8 encofing bu default, but in > script there are no encoding specified. So I suggest to add one line > there: > + Content-Type: text/plain; charset=utf-8 --- contrib/hooks/post-receive-email | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email index 58a35c8..fc121e7 100755 --- a/contrib/hooks/post-receive-email +++ b/contrib/hooks/post-receive-email @@ -197,6 +197,7 @@ generate_email_header() cat <<-EOF To: $recipients Subject: ${emailprefix}$projectdesc $refname_type, $short_refname, ${change_type}d. $describe + Content-Type: text/plain; charset=utf-8 X-Git-Refname: $refname X-Git-Reftype: $refname_type X-Git-Oldrev: $oldrev -- 1.7.0.3