3 # Copyright (c) 2009 Eric Wong
5 test_description
='git svn refuses to dcommit non-UTF8 messages'
9 # ISO-2022-JP can pass for valid UTF-8, so skipping that in this test
11 for H
in ISO8859-1 eucJP
13 test_expect_success
"$H setup" '
15 svn_cmd import -m "$H test" $H "$svnrepo"/$H &&
16 git svn clone "$svnrepo"/$H $H
20 for H
in ISO8859-1 eucJP
22 test_expect_success
"$H commit on git side" '
25 git config i18n.commitencoding $H &&
26 git checkout -b t refs/remotes/git-svn &&
29 git commit -a -F "$TEST_DIRECTORY"/t3900/$H.txt &&
30 E=$(git cat-file commit HEAD | sed -ne "s/^encoding //p") &&
36 for H
in ISO8859-1 eucJP
38 test_expect_success
"$H dcommit to svn" '
41 git config --unset i18n.commitencoding &&
42 test_must_fail git svn dcommit