File: t6300-for-each-ref.sh

package info (click to toggle)
git 1%3A2.51.0%2Bnext.20250825-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 61,548 kB
  • sloc: ansic: 305,207; sh: 260,479; perl: 25,943; tcl: 21,754; makefile: 4,176; python: 3,442; javascript: 772; csh: 45
file content (19 lines) | stat: -rwxr-xr-x 428 bytes parent folder | download
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