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"
46 test_expect_success
'With -no-hardlinks, local will make a copy' '
48 git clone --bare --no-hardlinks x w &&
50 linked=$(find objects -type f ! -links 1 | wc -l) &&
54 test_expect_success
'Even without -l, local will make a hardlink' '
57 git clone -l --bare x w &&
59 copied=$(find objects -type f -links 1 | wc -l) &&