summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2021-12-07 13:38:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-12-07 21:15:19 (GMT)
commite9706a188f8598ea4d8afac1f70360abb77d4d8d (patch)
tree0824e81e26b7119053a7e6669c93f6a2743daf85 /t/helper
parent0464d0a134df97c3f9475c58e536c3b685a3ff7d (diff)
downloadgit-e9706a188f8598ea4d8afac1f70360abb77d4d8d.zip
git-e9706a188f8598ea4d8afac1f70360abb77d4d8d.tar.gz
git-e9706a188f8598ea4d8afac1f70360abb77d4d8d.tar.bz2
refs: introduce REF_SKIP_OID_VERIFICATION flag
This lets the ref-store test helper write non-existent or unparsable objects into the ref storage. Use this to make t1006 and t3800 independent of the files storage backend. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-ref-store.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c
index 8fee3cf..0f3aa84 100644
--- a/t/helper/test-ref-store.c
+++ b/t/helper/test-ref-store.c
@@ -130,6 +130,7 @@ static int cmd_create_symref(struct ref_store *refs, const char **argv)
static struct flag_definition transaction_flags[] = {
FLAG_DEF(REF_NO_DEREF),
FLAG_DEF(REF_FORCE_CREATE_REFLOG),
+ FLAG_DEF(REF_SKIP_OID_VERIFICATION),
{ NULL, 0 }
};