diff options
author | Jeff King <peff@peff.net> | 2019-04-05 20:14:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-16 09:58:21 +0200 |
commit | b3223761c8670bdfb667e39c78b6d32a7aa4cb80 (patch) | |
tree | 927e15d1cae7d98b7004e1146632589212e4c01f /server-info.c | |
parent | server-info: drop objdirlen pointer arithmetic (diff) | |
download | git-b3223761c8670bdfb667e39c78b6d32a7aa4cb80.tar.xz git-b3223761c8670bdfb667e39c78b6d32a7aa4cb80.zip |
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>
Diffstat (limited to 'server-info.c')
-rw-r--r-- | server-info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server-info.c b/server-info.c index ab03c1b3c2..41274d098b 100644 --- a/server-info.c +++ b/server-info.c @@ -78,7 +78,7 @@ static int generate_info_refs(FILE *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"); int ret = update_info_file(path, generate_info_refs); @@ -269,7 +269,7 @@ int update_server_info(int force) */ int errs = 0; - errs = errs | update_info_refs(force); + errs = errs | update_info_refs(); errs = errs | update_info_packs(force); /* remove leftover rev-cache file if there is any */ |