7 test_expect_success setup
'
10 test_create_repo src &&
20 test_expect_success
'clone with excess parameters (1)' '
23 test_must_fail git clone -n src dst junk
27 test_expect_success
'clone with excess parameters (2)' '
30 test_must_fail git clone -n "file://$(pwd)/src" dst junk
34 test_expect_success
'clone does not keep pack' '
37 git clone -n "file://$(pwd)/src" dst &&
39 ! (echo dst/.git/objects/pack/pack-* | grep "\.keep")
43 test_expect_success
'clone checks out files' '
51 test_expect_success
'clone respects GIT_WORK_TREE' '
53 GIT_WORK_TREE=worktree git clone src bare &&
54 test -f bare/config &&
59 test_expect_success
'clone creates intermediate directories' '
61 git clone src long/path/to/dst &&
62 test -f long/path/to/dst/file
66 test_expect_success
'clone creates intermediate directories for bare repo' '
68 git clone --bare src long/path/to/bare/dst &&
69 test -f long/path/to/bare/dst/config