From: Junio C Hamano <gitster@pobox.com>
To: Siddharth Shrimali <r.siddharth.shrimali@gmail.com>
Cc: git@vger.kernel.org, sunshine@sunshineco.com, peff@peff.net,
pushkarkumarsingh1970@gmail.com, christian.couder@gmail.com,
karthik.188@gmail.com
Subject: Re: [PATCH v3] t0410: modernize delete_object helper
Date: Fri, 13 Mar 2026 08:20:59 -0700 [thread overview]
Message-ID: <xmqqa4wb92n8.fsf@gitster.g> (raw)
In-Reply-To: <20260313053159.36492-1-r.siddharth.shrimali@gmail.com> (Siddharth Shrimali's message of "Fri, 13 Mar 2026 11:01:59 +0530")
Siddharth Shrimali <r.siddharth.shrimali@gmail.com> 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 () {
next prev parent reply other threads:[~2026-03-13 15:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-12 12:50 [PATCH] t0410: modernize delete_object helper Siddharth Shrimali
2026-03-12 14:17 ` Pushkar Singh
2026-03-12 19:05 ` Eric Sunshine
2026-03-12 19:09 ` Junio C Hamano
2026-03-12 20:33 ` Jeff King
2026-03-12 22:03 ` Junio C Hamano
2026-03-13 2:58 ` [PATCH v2] " Siddharth Shrimali
2026-03-13 4:58 ` Jeff King
2026-03-13 15:29 ` Junio C Hamano
2026-03-18 2:37 ` Jeff King
2026-03-13 5:31 ` [PATCH v3] " Siddharth Shrimali
2026-03-13 15:20 ` Junio C Hamano [this message]
2026-03-13 15:19 ` [PATCH v2] " Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqa4wb92n8.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=christian.couder@gmail.com \
--cc=git@vger.kernel.org \
--cc=karthik.188@gmail.com \
--cc=peff@peff.net \
--cc=pushkarkumarsingh1970@gmail.com \
--cc=r.siddharth.shrimali@gmail.com \
--cc=sunshine@sunshineco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox