Skip to content

Commit 8d8143a

Browse files
committed
sparse-index: use read-tree for expand/collapse test
In anticipation of `reset` being fully integrated with sparse index, the test for index expand and collapse for non-sparse index integrated commands is updated to use `read-tree`. Signed-off-by: Victoria Dye <[email protected]>
1 parent e934f4f commit 8d8143a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1092-sparse-checkout-compatibility.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ test_expect_success 'sparse-index is expanded and converted back' '
750750
init_repos &&
751751
752752
GIT_TRACE2_EVENT="$(pwd)/trace2.txt" GIT_TRACE2_EVENT_NESTING=10 \
753-
git -C sparse-index -c core.fsmonitor="" reset --hard &&
753+
git -C sparse-index -c core.fsmonitor="" read-tree -mu HEAD &&
754754
test_region index convert_to_sparse trace2.txt &&
755755
test_region index ensure_full_index trace2.txt
756756
'

0 commit comments

Comments
 (0)