update_info_refs(): drop unused force parameter

Once upon a time the force flag meant something when writing info/refs,
but it hasn't done anything since 60d0526aaa (Unoptimize info/refs
creation., 2005-09-14).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King 2019-04-05 14:14:07 -04:00 committed by Junio C Hamano
parent b9fb142eac
commit b3223761c8

View File

@ -78,7 +78,7 @@ static int generate_info_refs(FILE *fp)
return for_each_ref(add_info_ref, fp); return for_each_ref(add_info_ref, fp);
} }
static int update_info_refs(int force) static int update_info_refs(void)
{ {
char *path = git_pathdup("info/refs"); char *path = git_pathdup("info/refs");
int ret = update_info_file(path, generate_info_refs); int ret = update_info_file(path, generate_info_refs);
@ -269,7 +269,7 @@ int update_server_info(int force)
*/ */
int errs = 0; int errs = 0;
errs = errs | update_info_refs(force); errs = errs | update_info_refs();
errs = errs | update_info_packs(force); errs = errs | update_info_packs(force);
/* remove leftover rev-cache file if there is any */ /* remove leftover rev-cache file if there is any */