git-svn: refuse to dcommit non-UTF-8 messages
authorEric Wong <normalperson@yhbt.net>
Thu, 28 May 2009 07:56:23 +0000 (00:56 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 28 May 2009 07:57:07 +0000 (00:57 -0700)
commitb510df8af2c86d441de87fa4be09f786b5411527
tree44ac92ead768529ffefe3f09db23426db2c9a647
parent33fd7169ed6658e898b414a66aefaad16b404ec5
git-svn: refuse to dcommit non-UTF-8 messages

...without i18n.commitencoding set in the config.

SVN tries to store all commit messages in UTF-8, however it is
up to the job of the clients to enforce this rule.  SVN servers
themselves do not always enforce this; allowing clients to
commit malformed UTF-8 messages and break repositories.

So git-svn will enforce this and tell the user to set
i18n.commitencoding when a git commit is is not in UTF-8.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl
t/t9139-git-svn-non-utf8-commitencoding.sh [new file with mode: 0755]