diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-03-24 12:31:31 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-24 12:31:32 -0700 |
| commit | dd33e738a469cb7841a4a6132bdce1809d0772aa (patch) | |
| tree | 1715f26b53015d41b0972e906b8e32d505dbcbb5 | |
| parent | 410ab9a25727a866b16c5de3314d33530d2498f7 (diff) | |
| parent | d39cef3a1af5da30fc8db2f31b0cd23cfb45d05b (diff) | |
| download | git-dd33e738a469cb7841a4a6132bdce1809d0772aa.tar.xz | |
Merge branch 'ss/t0410-delete-object-cleanup'
Test clean-up.
* ss/t0410-delete-object-cleanup:
t0410: modernize delete_object helper
| -rwxr-xr-x | t/t0410-partial-clone.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 () { |
