bash completion: refactor --strategy completion
[gitweb.git] / update-server-info.c
index b70856373fce5c014bf796f07d7b1d95bb9eeca1..7b38fd867bba6f8b8dcf9f2094769314b7f23e02 100644 (file)
@@ -1,15 +1,13 @@
 #include "cache.h"
-#include "object.h"
+#include "exec_cmd.h"
 
 static const char update_server_info_usage[] =
-"git-update-server-info [--force]";
+"git update-server-info [--force]";
 
 int main(int ac, char **av)
 {
        int i;
        int force = 0;
-       track_object_refs = 0;
-
        for (i = 1; i < ac; i++) {
                if (av[i][0] == '-') {
                        if (!strcmp("--force", av[i]) ||
@@ -22,5 +20,9 @@ int main(int ac, char **av)
        if (i != ac)
                usage(update_server_info_usage);
 
+       git_extract_argv0_path(av[0]);
+
+       setup_git_directory();
+
        return !!update_server_info(force);
 }