summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3dd374f)
raw | patch | inline | side by side (parent: 3dd374f)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Wed, 22 Sep 2010 19:20:25 +0000 (19:20 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:10:08 +0000 (07:10 +0000) |
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
builtin/add.c | patch | blob | history | |
t/t3700-add.sh | patch | blob | history |
diff --git a/builtin/add.c b/builtin/add.c
index 33c3f31f04d53db2bbd7e9a90270cc73e6dd3016..7358280c596ab63361c3851ecd043a1466a94ee5 100644 (file)
--- a/builtin/add.c
+++ b/builtin/add.c
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 ec7108358e7b7f54f0b5e7530c8368e4a56576af..d4fc563124e400399fd74a9a41948d45ff752442 100755 (executable)
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
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
'