diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-06-12 05:57:02 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-06-16 03:04:20 -0700 |
commit | 7a97de4e19757b5576f32ce67d90cb792dbb893b (patch) | |
tree | aa9f9ea1b3f651c49334370468cbdac22ae4a7e6 /contrib/git-svn/t | |
parent | git-svn: add some functionality to better support branches in svn (diff) | |
download | tgif-7a97de4e19757b5576f32ce67d90cb792dbb893b.tar.xz |
git-svn: add UTF-8 message test
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'contrib/git-svn/t')
-rw-r--r-- | contrib/git-svn/t/t0000-contrib-git-svn.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/git-svn/t/t0000-contrib-git-svn.sh b/contrib/git-svn/t/t0000-contrib-git-svn.sh index a07fbad68b..0c6ff2066b 100644 --- a/contrib/git-svn/t/t0000-contrib-git-svn.sh +++ b/contrib/git-svn/t/t0000-contrib-git-svn.sh @@ -4,6 +4,7 @@ # test_description='git-svn tests' +GIT_SVN_LC_ALL=$LC_ALL . ./lib-git-svn.sh mkdir import @@ -163,6 +164,18 @@ test_expect_success "$name" \ diff -u help $SVN_TREE/exec-2.sh" +if test -n "$GIT_SVN_LC_ALL" && echo $GIT_SVN_LC_ALL | grep -q '\.UTF-8$' +then + name="commit with UTF-8 message: locale: $GIT_SVN_LC_ALL" + echo '# hello' >> exec-2.sh + git update-index exec-2.sh + git commit -m 'éï∏' + export LC_ALL="$GIT_SVN_LC_ALL" + test_expect_success "$name" "git-svn commit HEAD" + unset LC_ALL +else + echo "UTF-8 locale not set, test skipped ($GIT_SVN_LC_ALL)" +fi name='test fetch functionality (svn => git) with alternate GIT_SVN_ID' GIT_SVN_ID=alt |