commit - 80c1b583fa29a970e4f84835d600ca990d5d2d8c
commit + 8940b51b2a573f8ab530614803bddbfe16a0a81d
blob - 691d705c49834d6702ffdf829c52d2e5ebfcfb94
blob + 2f03e3f22ca34a05036830cc0af2ab635a0799fb
--- regress/cmdline/checkout.sh
+++ regress/cmdline/checkout.sh
test_done "$testroot" "$ret"
}
-function test_checkout_sets_xbit {
- local testroot=`test_init checkout_sets_xbit 1`
-
- touch $testroot/repo/xfile
- chmod +x $testroot/repo/xfile
- (cd $testroot/repo && git add .)
- git_commit $testroot/repo -m "adding executable file"
-
- echo "A $testroot/wt/xfile" > $testroot/stdout.expected
- echo "Now shut up and hack" >> $testroot/stdout.expected
-
- got checkout $testroot/repo $testroot/wt > $testroot/stdout
- ret="$?"
- if [ "$ret" != "0" ]; then
- test_done "$testroot" "$ret"
- return 1
- fi
-
- cmp -s $testroot/stdout.expected $testroot/stdout
- ret="$?"
- if [ "$ret" != "0" ]; then
- diff -u $testroot/stdout.expected $testroot/stdout
- test_done "$testroot" "$ret"
- return 1
- fi
-
- ls -l $testroot/wt/xfile | grep -q '^-rwx'
- ret="$?"
- if [ "$ret" != "0" ]; then
- echo "file is not executable" >&2
- ls -l $testroot/wt/xfile >&2
- fi
- test_done "$testroot" "$ret"
-}
-
function test_checkout_commit_from_wrong_branch {
local testroot=`test_init checkout_commit_from_wrong_branch`