summaryrefslogtreecommitdiff
path: root/t/t6300-for-each-ref.sh
blob: 6d27b42ff10f9ba4dc7f130aa0c34f5eb08daacf (plain)
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" '
	git for-each-ref -h >usage &&
	test_grep "[Uu]sage: git for-each-ref " usage &&
	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