summaryrefslogtreecommitdiff
path: root/t/t5601-clone.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2011-04-10 19:34:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-04-12 17:46:29 (GMT)
commit2c050e017a5e7727a7448620d872d46ba22675e9 (patch)
treeeaf1ff7097d47a4c044438d0cd33c023ef743db6 /t/t5601-clone.sh
parentf06f08b78c1c8be7039bd94c5f1fb305812fda34 (diff)
downloadgit-2c050e017a5e7727a7448620d872d46ba22675e9.zip
git-2c050e017a5e7727a7448620d872d46ba22675e9.tar.gz
git-2c050e017a5e7727a7448620d872d46ba22675e9.tar.bz2
i18n: mark init-db messages for translation
Mark the init-db messages that were added in v1.7.5-rc1~16^2 (init, clone: support --separate-git-dir for .git file) by Nguyễn Thái Ngọc Duy for translation. This requires splitting up the tests that the patch added so that certain parts of them can be skipped unless the C_LOCALE_OUTPUT prerequisite is satisfied. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5601-clone.sh')
-rwxr-xr-xt/t5601-clone.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index 5a068b2..a50e36e 100755
--- a/t/t5601-clone.sh
+++ b/t/t5601-clone.sh
@@ -194,11 +194,14 @@ test_expect_success 'do not respect url-encoding of non-url path' '
test_expect_success 'clone separate gitdir' '
rm -rf dst &&
git clone --separate-git-dir realgitdir src dst &&
- echo "gitdir: `pwd`/realgitdir" >expected &&
- test_cmp expected dst/.git &&
test -d realgitdir/refs
'
+test_expect_success C_LOCALE_OUTPUT 'clone separate gitdir: output' '
+ echo "gitdir: `pwd`/realgitdir" >expected &&
+ test_cmp expected dst/.git
+'
+
test_expect_success 'clone separate gitdir where target already exists' '
rm -rf dst &&
test_must_fail git clone --separate-git-dir realgitdir src dst