diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-08-28 21:20:28 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-28 21:20:28 -0700 |
commit | 2730f55527143d3476c159cebbdb63d5e6a5c2a8 (patch) | |
tree | c57fde5c543baa16074b1167dbd4d646734e5b8c /t | |
parent | Merge branch 'ci/forbid-unwanted-current-branch-update' (diff) | |
parent | clone: allow to clone from .git file (diff) | |
download | tgif-2730f55527143d3476c159cebbdb63d5e6a5c2a8.tar.xz |
Merge branch 'nd/maint-clone-gitdir'
* nd/maint-clone-gitdir:
clone: allow to clone from .git file
read_gitfile_gently(): rename misnamed function to read_gitfile()
Diffstat (limited to 't')
-rwxr-xr-x | t/t5601-clone.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index d87214cfbf..e8103144bb 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 |