Skip to content
  • Eric Kidd's avatar
    filter-branch: Add more error-handling · 0ea29cce
    Eric Kidd authored and Junio C Hamano's avatar Junio C Hamano committed
    9273b562 (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: default avatarEric Kidd <git@randomhacks.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    0ea29cce