diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-12-07 13:38:13 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-07 13:15:18 -0800 |
commit | 93db6eef04539e822b6786ae12f1ea4db75635bb (patch) | |
tree | ed61e48a3e2cab23858b027db8c35abb9b8d7e50 /t/helper | |
parent | The first batch to start the current cycle (diff) | |
download | tgif-93db6eef04539e822b6786ae12f1ea4db75635bb.tar.xz |
test-ref-store: remove force-create argument for create-reflog
Nobody uses force_create=0, so this flag is unnecessary.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c index 3986665037..b795a56eed 100644 --- a/t/helper/test-ref-store.c +++ b/t/helper/test-ref-store.c @@ -182,9 +182,9 @@ static int cmd_reflog_exists(struct ref_store *refs, const char **argv) static int cmd_create_reflog(struct ref_store *refs, const char **argv) { const char *refname = notnull(*argv++, "refname"); - int force_create = arg_flags(*argv++, "force-create"); struct strbuf err = STRBUF_INIT; int ret; + int force_create = 1; ret = refs_create_reflog(refs, refname, force_create, &err); if (err.len) |