t7900: assert the absence of refs via git-for-each-ref(1)
commit170ba45acf4db996a58ce849e6901a65c13b94d6
authorPatrick Steinhardt <ps@pks.im>
Thu, 2 Nov 2023 08:47:10 +0000 (2 09:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Nov 2023 23:37:07 +0000 (3 08:37 +0900)
treecfbb8ef07ac2570bd11c441ae2560085f1c36edf
parent390c5b07e2c2a1df515f0d9d9077f3ad2fe11f0b
t7900: assert the absence of refs via git-for-each-ref(1)

We're asserting that a prefetch of remotes via git-maintenance(1)
doesn't write any references in refs/remotes by validating that the
directory ".git/refs/remotes" is missing. This is quite roundabout: we
don't care about the directory existing, we care about the references
not existing, and the way these are stored is on the behest of the
reference database.

Convert the test to instead check via git-for-each-ref(1) whether any
remote reference exist.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7900-maintenance.sh