]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-filter-branch.sh
remote: fix set-branches usage
[thirdparty/git.git] / git-filter-branch.sh
index 81fd3dba3de9671a1202bea389ad192cdd31c6ef..88fb0f070e5f32c62ae47f90f1f27ffeef836d8f 100755 (executable)
@@ -207,7 +207,7 @@ t,)
 ,*)
        ;;
 *)
-       die "Cannot set --prune-empty and --filter-commit at the same time"
+       die "Cannot set --prune-empty and --commit-filter at the same time"
 esac
 
 case "$force" in
@@ -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 \