diff --git a/scripts/list-cvs-files.sh b/scripts/list-cvs-files.sh index 3eac8239..67b27d41 100644 --- a/scripts/list-cvs-files.sh +++ b/scripts/list-cvs-files.sh @@ -45,8 +45,9 @@ list_dirents_cvs() list_dirents_git() { - git ls-files $git_ls_files_opts $1 - [ "$opt_no_submodules" = 1 ] || git submodule foreach "git ls-files $git_ls_files_opts | sed \"s|^|\$path/|\"" + local opts="$git_ls_files_opts" + [ "$opt_no_submodules" = 1 ] || opts="$opts --recurse-submodules" + git ls-files $opts $1 } list_dirents()