3 # Copyright (c) 2007 Junio C Hamano
5 test_description
='git checkout to switch between branches with symlink<->dir'
11 say
'Symbolic links not supported, skipping tests.'
16 test_expect_success setup
'
19 echo hello >frotz/filfre &&
20 git add frotz/filfre &&
22 git commit -m "master has file frotz/filfre" &&
26 echo goodbye >nitfol &&
29 git commit -m "master adds file nitfol" &&
33 git rm --cached frotz/filfre &&
36 git add xyzzy/filfre frotz &&
38 git commit -m "side moves frotz/ to xyzzy/ and adds frotz->xyzzy/"
42 test_expect_success
'switch from symlink to dir' '
48 rm -fr frotz xyzzy nitfol
&&
49 git checkout
-f master ||
exit
51 test_expect_success
'switch from dir to symlink' '