list-cvs-files.sh: Use git ls-files --recurse-submodules

Use --recurse-submodules option to git ls-files instead of implementing that
own our own.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-11-09 11:11:02 +00:00
commit 52db897dbb

View file

@ -45,8 +45,9 @@ list_dirents_cvs()
list_dirents_git() list_dirents_git()
{ {
git ls-files $git_ls_files_opts $1 local opts="$git_ls_files_opts"
[ "$opt_no_submodules" = 1 ] || git submodule foreach "git ls-files $git_ls_files_opts | sed \"s|^|\$path/|\"" [ "$opt_no_submodules" = 1 ] || opts="$opts --recurse-submodules"
git ls-files $opts $1
} }
list_dirents() list_dirents()