Skip to content

Commit

Permalink
t9100-git-svn-basic.sh: Fix determination of utf-8 locale
Browse files Browse the repository at this point in the history
When setting the GIT_SVN_LC_ALL variable, default to the $LANG
environment variable, when the $LC_ALL override is not set.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ramsay Jones authored and Junio C Hamano committed Jul 9, 2008
1 parent c6955fe commit 952182b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t9100-git-svn-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#

test_description='git-svn basic tests'
GIT_SVN_LC_ALL=$LC_ALL
GIT_SVN_LC_ALL=${LC_ALL:-$LANG}

case "$LC_ALL" in
case "$GIT_SVN_LC_ALL" in
*.UTF-8)
have_utf8=t
;;
Expand All @@ -17,7 +17,7 @@ esac

. ./lib-git-svn.sh

echo 'define NO_SVN_TESTS to skip git-svn tests'
say 'define NO_SVN_TESTS to skip git-svn tests'

test_expect_success \
'initialize git-svn' '
Expand Down Expand Up @@ -183,7 +183,7 @@ then
git-svn set-tree HEAD"
unset LC_ALL
else
echo "UTF-8 locale not set, test skipped ($GIT_SVN_LC_ALL)"
say "UTF-8 locale not set, test skipped ($GIT_SVN_LC_ALL)"
fi

name='test fetch functionality (svn => git) with alternate GIT_SVN_ID'
Expand Down

0 comments on commit 952182b

Please sign in to comment.