t / chainlint / t7900-subtree.teston commit untracked-cache: be defensive about missing NULs in index (c6909f9)
   1(
   2        chks="sub1
   3sub2
   4sub3
   5sub4" &&
   6        chks_sub=$(cat <<TXT | sed 's,^,sub dir/,'
   7$chks
   8TXT
   9) &&
  10        chkms="main-sub1
  11main-sub2
  12main-sub3
  13main-sub4" &&
  14        chkms_sub=$(cat <<TXT | sed 's,^,sub dir/,'
  15$chkms
  16TXT
  17) &&
  18
  19        subfiles=$(git ls-files) &&
  20        check_equal "$subfiles" "$chkms
  21$chks"
  22)