From: Junio C Hamano Date: Fri, 13 Mar 2026 15:20:59 GMT Subject: Re: [PATCH v3] t0410: modernize delete_object helper Message-ID: In-Reply-To: <20260313053159.36492-1-r.siddharth.shrimali@gmail.com> Siddharth Shrimali writes: > Changes in v3: > - Added quotes to 'local' variable assignments to improve shell > portability. Oh, our mails crossed with some timezone differences. The update looks good. Thanks. Will replace. > > Changes in v2: > - Added 'local' to variables and ensured they are properly quoted. > - Removed 'test_path_is_file' as 'rm' provides sufficient > error reporting. > > t/t0410-partial-clone.sh | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/t/t0410-partial-clone.sh b/t/t0410-partial-clone.sh > index 2a5bdbeeb8..52e19728a3 100755 > --- a/t/t0410-partial-clone.sh > +++ b/t/t0410-partial-clone.sh > @@ -11,7 +11,10 @@ test_description='partial clone' > GIT_TEST_COMMIT_GRAPH=0 > > delete_object () { > - rm $1/.git/objects/$(echo $2 | sed -e 's|^..|&/|') > + local repo="$1" > + local obj="$2" > + local path="$repo/.git/objects/$(test_oid_to_path "$obj")" && > + rm "$path" > } > > pack_as_from_promisor () {