| 1 | #!/bin/sh |
| 2 | # |
| 3 | # Copyright (c) 2007 Andy Parkins |
| 4 | # |
| 5 | |
| 6 | test_description='for-each-ref test' |
| 7 | |
| 8 | . ./test-lib.sh |
| 9 | |
| 10 | test_expect_success "for-each-ref does not crash with -h" ' |
| 11 | git for-each-ref -h >usage && |
| 12 | test_grep "[Uu]sage: git for-each-ref " usage && |
| 13 | nongit git for-each-ref -h >usage && |
| 14 | test_grep "[Uu]sage: git for-each-ref " usage |
| 15 | ' |
| 16 | |
| 17 | . "$TEST_DIRECTORY"/for-each-ref-tests.sh |
| 18 | |
| 19 | test_done |