mirror of
https://github.com/git/git.git
synced 2024-11-19 08:34:54 +01:00
i18n: git-submodule "path not initialized" message
Gettextize the "Submodule path '$path' not initialized" message. This is explicitly tested for so we need to skip a portion of a test with test_i18grep. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3a4c3ed7e8
commit
1c2ef66f63
@ -464,8 +464,8 @@ cmd_update()
|
||||
# Only mention uninitialized submodules when its
|
||||
# path have been specified
|
||||
test "$#" != "0" &&
|
||||
say "Submodule path '$path' not initialized" &&
|
||||
say "Maybe you want to use 'update --init'?"
|
||||
say "$(eval_gettext "Submodule path '\$path' not initialized
|
||||
Maybe you want to use 'update --init'?")"
|
||||
continue
|
||||
fi
|
||||
|
||||
|
@ -357,7 +357,7 @@ test_expect_success 'update --init' '
|
||||
|
||||
git submodule update init > update.out &&
|
||||
cat update.out &&
|
||||
grep "not initialized" update.out &&
|
||||
test_i18ngrep "not initialized" update.out &&
|
||||
! test -d init/.git &&
|
||||
|
||||
git submodule update --init init &&
|
||||
|
Loading…
Reference in New Issue
Block a user