]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1509: correct i18n test
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Wed, 13 May 2020 13:23:06 +0000 (20:23 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 May 2020 16:59:00 +0000 (09:59 -0700)
git-init(1)'s messages is subjected to i18n.
They should be tested by test_i18n* family.

Fix them.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1509-root-work-tree.sh

index 553a3f601ba7c76efa193d4a33823197c05281e7..fd2f7abf1c192eebaa98a3b7d3d22433cd523ae4 100755 (executable)
@@ -221,7 +221,7 @@ test_expect_success 'setup' '
        rm -rf /.git &&
        echo "Initialized empty Git repository in /.git/" > expected &&
        git init > result &&
-       test_cmp expected result
+       test_i18ncmp expected result
 '
 
 test_vars 'auto gitdir, root' ".git" "/" ""
@@ -246,7 +246,7 @@ test_expect_success 'setup' '
        cd / &&
        echo "Initialized empty Git repository in /" > expected &&
        git init --bare > result &&
-       test_cmp expected result
+       test_i18ncmp expected result
 '
 
 test_vars 'auto gitdir, root' "." "" ""