1#!/bin/sh
23
test_description=clone
45
. ./test-lib.sh
67
test_expect_success setup '
89
rm -fr .git &&
10test_create_repo src &&
11(
12cd src
13>file
14git add file
15git commit -m initial
16)
1718
'
1920
test_expect_success 'clone with excess parameters' '
2122
test_must_fail git clone -n "file://$(pwd)/src" dst junk
2324
'
2526
test_expect_success 'clone checks out files' '
2728
git clone src dst &&
29test -f dst/file
3031
'
3233
test_done