git-fetch --tags: deal with tags with spaces in them.
[git/dscho.git] / update-server-info.c
blobb70856373fce5c014bf796f07d7b1d95bb9eeca1
1 #include "cache.h"
2 #include "object.h"
4 static const char update_server_info_usage[] =
5 "git-update-server-info [--force]";
7 int main(int ac, char **av)
9 int i;
10 int force = 0;
11 track_object_refs = 0;
13 for (i = 1; i < ac; i++) {
14 if (av[i][0] == '-') {
15 if (!strcmp("--force", av[i]) ||
16 !strcmp("-f", av[i]))
17 force = 1;
18 else
19 usage(update_server_info_usage);
22 if (i != ac)
23 usage(update_server_info_usage);
25 return !!update_server_info(force);