filter-branch: Add tests for submodules in tree-filter
[gitweb.git] / git-filter-branch.sh
index 195b5ef48ed3371b2010f9caf711e12089da9c06..7c4ad7dcf9c29030ac5c40a0ef3820c8b0287f8a 100755 (executable)
@@ -331,7 +331,7 @@ while read commit parents; do
                        die "tree filter failed: $filter_tree"
 
                (
-                       git diff-index -r --name-only $commit &&
+                       git diff-index -r --name-only --ignore-submodules $commit &&
                        git ls-files --others
                ) > "$tempdir"/tree-state || exit
                git update-index --add --replace --remove --stdin \