object-store: close all packs upon clearing the object store
[gitweb.git] / common-main.c
index c654f95551c33d6b346ae7fe43a6cac987dd6b75..7d716d5a5491ba6b3a596f2128c4f08253d1d364 100644 (file)
@@ -1,5 +1,6 @@
 #include "cache.h"
 #include "exec_cmd.h"
+#include "attr.h"
 
 /*
  * Many parts of Git have subprograms communicate via pipe, expect the
@@ -33,6 +34,10 @@ int main(int argc, const char **argv)
 
        git_setup_gettext();
 
+       initialize_the_repository();
+
+       attr_start();
+
        git_extract_argv0_path(argv[0]);
 
        restore_sigpipe_to_default();