From: Ævar Arnfjörð Bjarmason Date: Wed, 22 Sep 2010 19:20:25 +0000 (+0000) Subject: gettextize: git-add "no files added" message X-Git-Tag: ko-pu~10^2~132 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3741ae7623f5dcf203d236ff990d6acd13000881;p=git.git gettextize: git-add "no files added" message Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/builtin/add.c b/builtin/add.c index 33c3f31f0..7358280c5 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -347,7 +347,7 @@ static int add_files(struct dir_struct *dir, int flags) for (i = 0; i < dir->ignored_nr; i++) fprintf(stderr, "%s\n", dir->ignored[i]->name); fprintf(stderr, "Use -f if you really want to add them.\n"); - die("no files added"); + die(_("no files added")); } for (i = 0; i < dir->nr; i++) diff --git a/t/t3700-add.sh b/t/t3700-add.sh index ec7108358..d4fc56312 100755 --- a/t/t3700-add.sh +++ b/t/t3700-add.sh @@ -283,7 +283,10 @@ add 'track-this' EOF test_expect_success 'git add --dry-run --ignore-missing of non-existing file' ' - test_must_fail git add --dry-run --ignore-missing track-this ignored-file >actual.out 2>actual.err && + test_must_fail git add --dry-run --ignore-missing track-this ignored-file >actual.out 2>actual.err +' + +test_expect_success NO_GETTEXT_POISON 'git add --dry-run --ignore-missing of non-existing file output' ' test_cmp expect.out actual.out && test_cmp expect.err actual.err '