multi-pack-index: load into memory
[gitweb.git] / common-main.c
index c654f95551c33d6b346ae7fe43a6cac987dd6b75..3728f66b4cce80d298aab0e551a2d3c03e2c4357 100644 (file)
@@ -1,5 +1,6 @@
 #include "cache.h"
-#include "exec_cmd.h"
+#include "exec-cmd.h"
+#include "attr.h"
 
 /*
  * Many parts of Git have subprograms communicate via pipe, expect the
@@ -31,9 +32,13 @@ int main(int argc, const char **argv)
         */
        sanitize_stdfds();
 
+       git_resolve_executable_dir(argv[0]);
+
        git_setup_gettext();
 
-       git_extract_argv0_path(argv[0]);
+       initialize_the_repository();
+
+       attr_start();
 
        restore_sigpipe_to_default();