Skip to content

Commit dd33e73

Browse files
committed
Merge branch 'ss/t0410-delete-object-cleanup'
Test clean-up. * ss/t0410-delete-object-cleanup: t0410: modernize delete_object helper
2 parents 410ab9a + d39cef3 commit dd33e73

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/t0410-partial-clone.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ test_description='partial clone'
1111
GIT_TEST_COMMIT_GRAPH=0
1212

1313
delete_object () {
14-
rm $1/.git/objects/$(echo $2 | sed -e 's|^..|&/|')
14+
local repo="$1"
15+
local obj="$2"
16+
local path="$repo/.git/objects/$(test_oid_to_path "$obj")" &&
17+
rm "$path"
1518
}
1619

1720
pack_as_from_promisor () {

0 commit comments

Comments
 (0)