summaryrefslogtreecommitdiff
path: root/update-server-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'update-server-info.c')
-rw-r--r--update-server-info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/update-server-info.c b/update-server-info.c
index 7e8209ea4b..7b38fd867b 100644
--- a/update-server-info.c
+++ b/update-server-info.c
@@ -1,4 +1,5 @@
#include "cache.h"
+#include "exec_cmd.h"
static const char update_server_info_usage[] =
"git update-server-info [--force]";
@@ -19,6 +20,8 @@ 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);