From 3741ae7623f5dcf203d236ff990d6acd13000881 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 22 Sep 2010 19:20:25 +0000 Subject: [PATCH] gettextize: git-add "no files added" message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/add.c | 2 +- t/t3700-add.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 ' -- 2.30.2