about summary refs log tree commit diff
path: root/t/chainlint/t7900-subtree.test
blob: 277d8358dfd5f8d104665c420be234d40da9fb4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(
	chks="sub1
sub2
sub3
sub4" &&
	chks_sub=$(cat <<TXT | sed 's,^,sub dir/,'
$chks
TXT
) &&
	chkms="main-sub1
main-sub2
main-sub3
main-sub4" &&
	chkms_sub=$(cat <<TXT | sed 's,^,sub dir/,'
$chkms
TXT
) &&

	subfiles=$(git ls-files) &&
	check_equal "$subfiles" "$chkms
$chks"
)