3 test_description='test local clone'
8 test_expect_success 'preparing origin repository' '
9 : >file && git add . && git commit -m1 &&
10 git clone --bare . a.git &&
14 test_expect_success 'local clone without .git suffix' '
16 git clone -l -s a b &&
21 test_expect_success 'local clone with .git suffix' '
23 git clone -l -s a.git c &&
28 test_expect_success 'local clone from x' '
30 git clone -l -s x y &&
35 test_expect_success 'local clone from x.git that does not exist' '
37 if git clone -l -s x.git z
39 echo "Oops, should have failed"