]> git.ipfire.org Git - thirdparty/git.git/commit - git-filter-branch.sh
filter-branch: Add more error-handling
authorEric Kidd <git@randomhacks.net>
Wed, 11 Feb 2009 21:10:41 +0000 (16:10 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Feb 2009 02:26:52 +0000 (18:26 -0800)
commit0ea29cce4d099d2fa6613ec66c080776cfe869d5
tree1d7efa6cea53dc291579a7299cd30a553ea6e60d
parente5f5050ed1481c3bc27658f625a87155aed0984f
filter-branch: Add more error-handling

9273b56 (filter-branch: Fix fatal error on bare repositories, 2009-02-03)
fixed a missing check of return status from an underlying command in
git-filter-branch, but there still are places that do not check errors.
For example, the command does not pay attention to the exit status of the
command given by --commit-filter.  It should abort in such a case.

This attempts to fix all the remaining places that fails to checks errors.

In two places, I've had to break apart pipelines in order to check the
error code for the first stage of the pipeline, as discussed here:

  http://kerneltrap.org/mailarchive/git/2009/1/28/4835614

Feedback on this patch was provided by Johannes Sixt, Johannes Schindelin
and Junio C Hamano.  Thomas Rast helped with pipeline error handling.

Signed-off-by: Eric Kidd <git@randomhacks.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-filter-branch.sh
t/t7003-filter-branch.sh