3 # Copyright (c) 2007 Junio C Hamano
5 test_description
='git checkout to switch between branches with symlink<->dir'
9 test_expect_success SYMLINKS setup
'
12 echo hello >frotz/filfre &&
13 git add frotz/filfre &&
15 git commit -m "master has file frotz/filfre" &&
19 echo goodbye >nitfol &&
22 git commit -m "master adds file nitfol" &&
26 git rm --cached frotz/filfre &&
29 git add xyzzy/filfre frotz &&
31 git commit -m "side moves frotz/ to xyzzy/ and adds frotz->xyzzy/"
35 test_expect_success SYMLINKS
'switch from symlink to dir' '
41 test_expect_success SYMLINKS
'Remove temporary directories & switch to master' '
42 rm -fr frotz xyzzy nitfol &&
43 git checkout -f master
46 test_expect_success SYMLINKS
'switch from dir to symlink' '