t1450: robustify `remove_object()`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 10 Feb 2021 18:01:29 +0000 (18:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Feb 2021 20:38:00 +0000 (12:38 -0800)
commit8c891eed3a89ff945b7957cdf62037b2e2b6eca7
tree244b393035edbf57f52da6683b9a334b889cdb6a
parent773e25afc41b1b6533fa9ae2cd825d0b4a697fad
t1450: robustify `remove_object()`

This function can be simplified by using the `test_oid_to_path()`
helper, which incidentally also makes it more robust by not relying on
the exact file system layout of the loose object files.

While at it, do not define those functions in a test case, it buys us
nothing.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1450-fsck.sh