summaryrefslogtreecommitdiff
path: root/fsck.c
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2012-04-20 08:25:09 +0200
committerJunio C Hamano <gitster@pobox.com>2012-04-20 13:38:51 -0700
commit05880b02221dc8da136e9febfa7853ad822b1ee1 (patch)
tree5e174789e72ad92c264f2577d1257200f1b1ff2d /fsck.c
parente8dde3e5f9ddb7cf95a6ff3cea6cf07c3a2db80d (diff)
downloadgit-05880b02221dc8da136e9febfa7853ad822b1ee1.tar.gz
t9300-fast-import: avoid 'exit' in test_expect_success snippets
Exiting from a for-loop early using '|| break' does not propagate the failure code, and for this reason, the tests used just 'exit'. But this ends the test script with 'FATAL: Unexpected exit code 1' in the case of a failed test. Fix this by moving the loop into a shell function, from which we can simply return early. While at it, modernize the style of the affected test cases. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsck.c')
0 files changed, 0 insertions, 0 deletions