From d24b6438fd4870c1bf8a4b3f11f33be5b0966703 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 1 Sep 2010 15:54:30 +0000 Subject: [PATCH] gettextize: git-clone "Cloning into" message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Split up the "Cloning into %s" and "Cloning into bare repository %s" messages to make them easier to translate. Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/clone.c | 9 ++++++--- t/t5601-clone.sh | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/builtin/clone.c b/builtin/clone.c index 31c1bc677..de23ba346 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -465,9 +465,12 @@ int cmd_clone(int argc, const char **argv, const char *prefix) die(_("could not create leading directories of '%s'"), git_dir); set_git_dir(make_absolute_path(git_dir)); - if (0 <= option_verbosity) - printf("Cloning into %s%s...\n", - option_bare ? "bare repository " : "", dir); + if (0 <= option_verbosity) { + if (option_bare) + printf(_("Cloning into bare repository %s\n"), dir); + else + printf(_("Cloning into %s\n"), dir); + } init_db(option_template, INIT_DB_QUIET); /* diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 987e0c846..ecb499d8a 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -31,7 +31,7 @@ test_expect_success 'clone with excess parameters (2)' ' ' -test_expect_success 'output from clone' ' +test_expect_success NO_GETTEXT_POISON 'output from clone' ' rm -fr dst && git clone -n "file://$(pwd)/src" dst >output && test $(grep Clon output | wc -l) = 1 -- 2.30.2