summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2018-07-01 20:23:48 -0400
committerJunio C Hamano <gitster@pobox.com>2018-07-03 12:38:05 -0700
commit431f4a26b5a8371de64776028ea511c79f74296a (patch)
tree19dcc708516709a47c56d7f00b64aaa8e11ec266 /commit.c
parentfb23bd7af232d05d415653dc4d80b634a428f76f (diff)
t5505: modernize and simplify hard-to-digest test
This test uses a subshell within a subshell but is formatted in such a way as to suggests that the inner subshell is a sibling rather than a child, which makes it difficult to digest the test's structure and intent. Worse, the inner subshell performs cleanup of actions from earlier in the test, however, a failure between the initial actions and the cleanup will prevent the cleanup from taking place. Fix these problems by modernizing and simplifying the test and by using test_when_finished() for the cleanup action. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions