Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (21 sloc) 0.457 kb
8f3f9b0 [PATCH] Add update-server-info.
Junio C Hamano authored
1 #include "cache.h"
2
3 static const char update_server_info_usage[] =
4 "git-update-server-info [--force]";
5
6 int main(int ac, char **av)
7 {
8 int i;
9 int force = 0;
10 for (i = 1; i < ac; i++) {
11 if (av[i][0] == '-') {
12 if (!strcmp("--force", av[i]) ||
13 !strcmp("-f", av[i]))
14 force = 1;
15 else
16 usage(update_server_info_usage);
17 }
18 }
19 if (i != ac)
20 usage(update_server_info_usage);
21
53228a5 Make the rest of commands work from a subdirectory.
Junio C Hamano authored
22 setup_git_directory();
23
8f3f9b0 [PATCH] Add update-server-info.
Junio C Hamano authored
24 return !!update_server_info(force);
25 }
Something went wrong with that request. Please try again.