]> git.ipfire.org Git - thirdparty/git.git/blame - t/t2006-checkout-index-basic.sh
Merge branch 'maint-1.7.3' into maint
[thirdparty/git.git] / t / t2006-checkout-index-basic.sh
CommitLineData
cf9d52e4
NTND
1#!/bin/sh
2
3test_description='basic checkout-index tests
4'
5
6. ./test-lib.sh
7
8test_expect_success 'checkout-index --gobbledegook' '
9 test_expect_code 129 git checkout-index --gobbledegook 2>err &&
10 grep "[Uu]sage" err
11'
12
13test_expect_success 'checkout-index -h in broken repository' '
14 mkdir broken &&
15 (
16 cd broken &&
17 git init &&
18 >.git/index &&
19 test_expect_code 129 git checkout-index -h >usage 2>&1
20 ) &&
21 grep "[Uu]sage" broken/usage
22'
23
24test_done