summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-12-07 12:45:15 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-07 12:45:15 -0800
commit4e26066009ef3d4e725da075f1bed39630e4da9f (patch)
tree1986844d3ea7c07d912b662d088c80639917f347 /builtin
parentMerge branch 'hn/reftable' into hn/reftable-coverity-fixes (diff)
parentrefs: drop force_create argument of create_reflog API (diff)
downloadtgif-4e26066009ef3d4e725da075f1bed39630e4da9f.tar.xz
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 'builtin')
-rw-r--r--builtin/checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index cbf73b8c9f..19d752847f 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -874,7 +874,7 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
int ret;
struct strbuf err = STRBUF_INIT;
- ret = safe_create_reflog(refname, 1, &err);
+ ret = safe_create_reflog(refname, &err);
if (ret) {
fprintf(stderr, _("Can not do reflog for '%s': %s\n"),
opts->new_orphan_branch, err.buf);