summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasco Almeida <vascomalmeida@sapo.pt>2016-09-19 13:08:17 +0000
committerJunio C Hamano <gitster@pobox.com>2016-09-19 10:55:36 -0700
commitf2b93b388ccbce342bc8b58d8581f6a077f42eff (patch)
tree9d5362c52dbdbfd9ae8c1f8e653b9a748c244e2e
parent4fa4b31507f28b3a6486e44b620ab36c6380cb7d (diff)
downloadgit-f2b93b388ccbce342bc8b58d8581f6a077f42eff.tar.gz
i18n: connect: mark die messages for translation
Mark messages passed to die() in die_initial_contact(). Update test to reflect changes. Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--connect.c8
-rwxr-xr-xt/t5512-ls-remote.sh2
2 files changed, 5 insertions, 5 deletions
diff --git a/connect.c b/connect.c
index 722dc3fc54..06bff0b48a 100644
--- a/connect.c
+++ b/connect.c
@@ -46,11 +46,11 @@ int check_ref_type(const struct ref *ref, int flags)
static void die_initial_contact(int got_at_least_one_head)
{
if (got_at_least_one_head)
- die("The remote end hung up upon initial contact");
+ die(_("The remote end hung up upon initial contact"));
else
- die("Could not read from remote repository.\n\n"
- "Please make sure you have the correct access rights\n"
- "and the repository exists.");
+ die(_("Could not read from remote repository.\n\n"
+ "Please make sure you have the correct access rights\n"
+ "and the repository exists."));
}
static void parse_one_symref_info(struct string_list *symref, const char *val, int len)
diff --git a/t/t5512-ls-remote.sh b/t/t5512-ls-remote.sh
index 819b9ddd0f..c23434ba29 100755
--- a/t/t5512-ls-remote.sh
+++ b/t/t5512-ls-remote.sh
@@ -99,7 +99,7 @@ test_expect_success 'confuses pattern as remote when no remote specified' '
# We could just as easily have used "master"; the "*" emphasizes its
# role as a pattern.
test_must_fail git ls-remote refs*master >actual 2>&1 &&
- test_cmp exp actual
+ test_i18ncmp exp actual
'
test_expect_success 'die with non-2 for wrong repository even with --exit-code' '