diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-09-06 20:50:17 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-30 10:39:06 -0700 |
commit | dbda967684dfefd0ac3518f9805ccf9ded9af429 (patch) | |
tree | bfe19181c3eff2748b21fa68c75135fa7120bc31 /t/t2018-checkout-branch.sh | |
parent | rev-list-options: clarify --parents and --children (diff) | |
download | tgif-dbda967684dfefd0ac3518f9805ccf9ded9af429.tar.xz |
t0004 (unwritable files): simplify error handling
Instead of
... normal test script ...
status=$?
... cleanup ...
(exit $status)
set up cleanup commands with test_when_finished. This makes the
test script a little shorter, and more importantly, it ensures errors
during cleanup are reported.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2018-checkout-branch.sh')
0 files changed, 0 insertions, 0 deletions