]>
Commit | Line | Data |
---|---|---|
cf9d52e4 NTND |
1 | #!/bin/sh |
2 | ||
3 | test_description='basic checkout-index tests | |
4 | ' | |
5 | ||
6 | . ./test-lib.sh | |
7 | ||
8 | test_expect_success 'checkout-index --gobbledegook' ' | |
9 | test_expect_code 129 git checkout-index --gobbledegook 2>err && | |
9a001381 | 10 | test_i18ngrep "[Uu]sage" err |
cf9d52e4 NTND |
11 | ' |
12 | ||
13 | test_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 | ) && | |
9a001381 | 21 | test_i18ngrep "[Uu]sage" broken/usage |
cf9d52e4 NTND |
22 | ' |
23 | ||
24 | test_done |