summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2023-11-29 08:25:18 +0100
committerJunio C Hamano <gitster@pobox.com>2023-12-03 11:50:24 +0900
commit866a1b902627df25bce2213d18285af9bd0ecae0 (patch)
treee67322ebeddd95548ca65c7b8c1045ddbcc706b6 /builtin/commit-graph.c
parent2e4afdad662c5fe0f19879073d2404f1fa6c5481 (diff)
t6301: write invalid object ID via `test-tool ref-store`
One of the tests in t6301 verifies that the reference backend correctly warns about the case where a reference points to a non-existent object. This is done by writing the object ID into the loose reference directly, which is quite intimate with how the files backend works. Refactor the code to instead use `test-tool ref-store` to write the reference, which is backend-agnostic. There are two more tests in this file which write loose files directly, as well. But both of them are indeed quite specific to the loose files backend and cannot be easily ported to other backends. We thus mark them as requiring the REFFILES prerequisite. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions