diff options
author | Victoria Dye <vdye@github.com> | 2022-01-11 18:04:58 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-13 13:49:44 -0800 |
commit | bb01b26dec69f5f287f0d36cbe4c765fe7f7b053 (patch) | |
tree | a6c9f99b42dbf9e07b3dffb7d3bfdddbb1d82644 /t/t7450-bad-git-dotfiles.sh | |
parent | The sixth batch (diff) | |
download | tgif-bb01b26dec69f5f287f0d36cbe4c765fe7f7b053.tar.xz |
reset: fix validation in sparse index test
Update t1092 test 'reset with pathspecs outside sparse definition' to verify
index contents. The use of `rev-parse` verifies the contents of HEAD, not
the index, providing no real validation of the reset results. Conversely,
`ls-files` reports the contents of the index (OIDs, flags, filenames), which
are then compared across checkouts to ensure compatible index states.
Fixes 741a2c9ffa (reset: expand test coverage for sparse checkouts,
2021-09-27).
Signed-off-by: Victoria Dye <vdye@github.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7450-bad-git-dotfiles.sh')
0 files changed, 0 insertions, 0 deletions