[Pkg-scicomp-commits] [SCM] git-utils branch, master, updated. f829d4a0796d71cc9d360ec221f69555929ba77a
Rafael Laboissiere
rafael at debian.org
Sat Jun 6 13:41:54 UTC 2009
The following commit has been merged in the master branch:
commit f829d4a0796d71cc9d360ec221f69555929ba77a
Author: Rafael Laboissiere <rafael at debian.org>
Date: Sat Jun 6 13:41:51 2009 +0000
Decode UTF-8 names before encoding into MIME-Q
diff --git a/git-commit-notice b/git-commit-notice
index cb6c44d..c7de41b 100755
--- a/git-commit-notice
+++ b/git-commit-notice
@@ -147,7 +147,7 @@ generate_email()
# The committer will be obtained from the latest existing rev; so
# for a deletion it will be the oldrev, for the others, then newrev
committer=$(git show --pretty=full -s $rev |
- perl -M'Encode qw/encode/' -n -e 'print if (s{^Commit: (.*)( <.*>)}{encode("MIME-Q", "\"".$1."\"") . $2}e);')
+ perl -M'Encode qw/encode decode/' -n -e 'print if (s{^Commit: (.*)( <.*>)}{encode("MIME-Q", "\"".decode("UTF-8",$1)."\"") . $2}e);')
# The email subject will contain the best description of the ref
# that we can build from the parameters
describe=$(git describe $rev 2>/dev/null)
@@ -223,7 +223,7 @@ generate_commit_log()
{
rev=$1
committer=$(git show --pretty=full -s $rev |
- perl -M'Encode qw/encode/' -n -e 'print if (s{^Commit: (.*)( <.*>)}{encode("MIME-Q", "\"".$1."\"") . $2}e);')
+ perl -M'Encode qw/encode decode/' -n -e 'print if (s{^Commit: (.*)( <.*>)}{encode("MIME-Q", "\"".decode("UTF-8",$1)."\"") . $2}e);')
## Filter added lines in diff output
bugs=$(git diff-tree -c -p $rev | grep '^\+' | perl -e '
--
git-utils
More information about the Pkg-scicomp-commits
mailing list