mirror of
https://github.com/git/git.git
synced 2024-11-05 00:37:55 +01:00
35613ba4ba
This reverts d119e3de13
commit.
Object references are used in server-info.c:find_pack_info_one() to
find out which objects in the pack are heads, therefore tracking of
references cannot be disabled.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
23 lines
432 B
C
23 lines
432 B
C
#include "cache.h"
|
|
|
|
static const char update_server_info_usage[] =
|
|
"git-update-server-info [--force]";
|
|
|
|
int main(int ac, char **av)
|
|
{
|
|
int i;
|
|
int force = 0;
|
|
for (i = 1; i < ac; i++) {
|
|
if (av[i][0] == '-') {
|
|
if (!strcmp("--force", av[i]) ||
|
|
!strcmp("-f", av[i]))
|
|
force = 1;
|
|
else
|
|
usage(update_server_info_usage);
|
|
}
|
|
}
|
|
if (i != ac)
|
|
usage(update_server_info_usage);
|
|
|
|
return !!update_server_info(force);
|
|
}
|