filter-branch.sh: remove temporary directory on failure
authorBrandon Casey <redacted>
Mon, 28 Jan 2008 21:16:02 +0000 (15:16 -0600)
committerJunio C Hamano <redacted>
Wed, 30 Jan 2008 19:56:12 +0000 (11:56 -0800)
commitdef16e71819833d507a97a645366c569939dce73
treee387a4914d52a9c97e00217272902c6e8d724e66
parent0eab8ca68ad7bfcbb7c0aff37985116cbbdacd44
filter-branch.sh: remove temporary directory on failure

One of the first things filter-branch does is to create a temporary
directory. This directory is eventually removed by the script during
normal operation, but is not removed if the script encounters an error.

Set a trap to remove it when the script terminates for any reason.

Signed-off-by: Brandon Casey <redacted>
Acked-by: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-filter-branch.sh
git clone https://git.99rst.org/PROJECT