1(
2chks="sub1sub2sub3sub4" &&
3chks_sub=$(cat | sed 's,^,sub dir/,'
4>>) &&
5chkms="main-sub1main-sub2main-sub3main-sub4" &&
6chkms_sub=$(cat | sed 's,^,sub dir/,'
7>>) &&
8subfiles=$(git ls-files) &&
9check_equal "$subfiles" "$chkms$chks"
10>)