7 test_expect_success setup '
10 test_create_repo src &&
20 test_expect_success 'clone with excess parameters' '
22 test_must_fail git clone -n "file://$(pwd)/src" dst junk
26 test_expect_success 'clone checks out files' '
33 test_expect_success 'clone respects GIT_WORK_TREE' '
35 GIT_WORK_TREE=worktree git clone src bare &&
36 test -f bare/config &&
41 test_expect_success 'clone creates intermediate directories' '
43 git clone src long/path/to/dst &&
44 test -f long/path/to/dst/file
48 test_expect_success 'clone creates intermediate directories for bare repo' '
50 git clone --bare src long/path/to/bare/dst &&
51 test -f long/path/to/bare/dst/config