summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-12-07 20:45:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-12-07 20:45:15 (GMT)
commit4e26066009ef3d4e725da075f1bed39630e4da9f (patch)
tree1986844d3ea7c07d912b662d088c80639917f347 /t/helper
parentbb4921cf45e11d063e7bbe55f594adf8f0077d5d (diff)
parent7b089120d9e0065978da461f8ccf42000e6760a4 (diff)
downloadgit-4e26066009ef3d4e725da075f1bed39630e4da9f.zip
git-4e26066009ef3d4e725da075f1bed39630e4da9f.tar.gz
git-4e26066009ef3d4e725da075f1bed39630e4da9f.tar.bz2
Merge branch 'hn/create-reflog-simplify' into hn/reftable-coverity-fixes
* hn/create-reflog-simplify: refs: drop force_create argument of create_reflog API
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-ref-store.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c
index 3986665..73461c2 100644
--- a/t/helper/test-ref-store.c
+++ b/t/helper/test-ref-store.c
@@ -182,11 +182,10 @@ 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;
- ret = refs_create_reflog(refs, refname, force_create, &err);
+ ret = refs_create_reflog(refs, refname, &err);
if (err.len)
puts(err.buf);
return ret;