aboutsummaryrefslogtreecommitdiffstats
path: root/t/t6300-for-each-ref.sh
blob: 1d9809114d2c8f0a7c65d5ea045d31e6d8baf884 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# Copyright (c) 2007 Andy Parkins
#

test_description='for-each-ref test'

. ./test-lib.sh

test_expect_success "for-each-ref does not crash with -h" '
	test_expect_code 129 git for-each-ref -h >usage &&
	test_grep "[Uu]sage: git for-each-ref " usage &&
	test_expect_code 129 nongit git for-each-ref -h >usage &&
	test_grep "[Uu]sage: git for-each-ref " usage
'

. "$TEST_DIRECTORY"/for-each-ref-tests.sh

test_done