i18n: git-submodule "[...] path is ignored" message
Gettextize the "The following path is ignored" message. This is explicitly tested for so we need to skip a portion of a test with test_i18ncmp. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
490b6d5749
commit
3a4c3ed7e8
@ -223,9 +223,12 @@ cmd_add()
|
|||||||
|
|
||||||
if test -z "$force" && ! git add --dry-run --ignore-missing "$path" > /dev/null 2>&1
|
if test -z "$force" && ! git add --dry-run --ignore-missing "$path" > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo >&2 "The following path is ignored by one of your .gitignore files:" &&
|
(
|
||||||
echo >&2 $path &&
|
eval_gettext "The following path is ignored by one of your .gitignore files:
|
||||||
echo >&2 "Use -f if you really want to add it."
|
\$path
|
||||||
|
Use -f if you really want to add it." &&
|
||||||
|
echo
|
||||||
|
) >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ test_expect_success 'submodule add to .gitignored path fails' '
|
|||||||
git add --force .gitignore &&
|
git add --force .gitignore &&
|
||||||
git commit -m"Ignore everything" &&
|
git commit -m"Ignore everything" &&
|
||||||
! git submodule add "$submodurl" submod >actual 2>&1 &&
|
! git submodule add "$submodurl" submod >actual 2>&1 &&
|
||||||
test_cmp expect actual
|
test_i18ncmp expect actual
|
||||||
)
|
)
|
||||||
'
|
'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user