man pages are littered with .ft C and others
[git/git-p4.git] / t / t2005-checkout-index-symlinks.sh
bloba84c5a6af9e69ffec7689827ce1ba653a658a73f
1 #!/bin/sh
3 # Copyright (c) 2007 Johannes Sixt
6 test_description='git checkout-index on filesystem w/o symlinks test.
8 This tests that git checkout-index creates a symbolic link as a plain
9 file if core.symlinks is false.'
11 . ./test-lib.sh
13 test_expect_success \
14 'preparation' '
15 git config core.symlinks false &&
16 l=$(echo -n file | git-hash-object -t blob -w --stdin) &&
17 echo "120000 $l symlink" | git update-index --index-info'
19 test_expect_success \
20 'the checked-out symlink must be a file' '
21 git checkout-index symlink &&
22 test -f symlink'
24 test_expect_success \
25 'the file must be the blob we added during the setup' '
26 test "$(git-hash-object -t blob symlink)" = $l'
28 test_done