From: Ævar Arnfjörð Bjarmason Date: Wed, 1 Sep 2010 15:54:30 +0000 (+0000) Subject: gettextize: git-clone "Cloning into" message X-Git-Tag: ko-pu~10^2~134 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d24b6438fd4870c1bf8a4b3f11f33be5b0966703;p=git.git gettextize: git-clone "Cloning into" message 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 --- 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