summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2011-08-21 11:58:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-08-22 21:20:11 (GMT)
commit9b0ebc722cfc12bd14934aab5cf77ebe654e36e6 (patch)
tree66a7dad2ef09f95cb548db34157e039bb0753caf /t
parent13d6ec913330ba90fb1a67ec5789e437f8ac4193 (diff)
downloadgit-9b0ebc722cfc12bd14934aab5cf77ebe654e36e6.zip
git-9b0ebc722cfc12bd14934aab5cf77ebe654e36e6.tar.gz
git-9b0ebc722cfc12bd14934aab5cf77ebe654e36e6.tar.bz2
clone: allow to clone from .git file
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5601-clone.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index 151ea53..501bd3f 100755
--- a/t/t5601-clone.sh
+++ b/t/t5601-clone.sh
@@ -202,6 +202,10 @@ test_expect_success 'clone separate gitdir: output' '
test_cmp expected dst/.git
'
+test_expect_success 'clone from .git file' '
+ git clone dst/.git dst2
+'
+
test_expect_success 'clone separate gitdir where target already exists' '
rm -rf dst &&
test_must_fail git clone --separate-git-dir realgitdir src dst