git-remote: exit with non-zero status after detecting errors.
[gitweb.git] / t / t7003-filter-branch.sh
index c79853d986ab31da6813576fe003f8a5885e0b64..e935b2000ac6589a4940f585616f8bf3be95223b 100755 (executable)
@@ -138,13 +138,7 @@ test_expect_success "remove a certain author's commits" '
        git-filter-branch -f --commit-filter "\
                if [ \"\$GIT_AUTHOR_NAME\" = \"B V Uips\" ];\
                then\
-                       shift;\
-                       while [ -n \"\$1\" ];\
-                       do\
-                               shift;\
-                               echo \"\$1\";\
-                               shift;\
-                       done;\
+                       skip_commit \"\$@\";
                else\
                        git commit-tree \"\$@\";\
                fi" removed-author &&