t0051: test GIT_TRACE to a windows named pipe
[gitweb.git] / common-main.c
index 6a689007e7ce3fe08f148e8b82c0a1c618c513a5..3728f66b4cce80d298aab0e551a2d3c03e2c4357 100644 (file)
@@ -1,5 +1,5 @@
 #include "cache.h"
-#include "exec_cmd.h"
+#include "exec-cmd.h"
 #include "attr.h"
 
 /*
@@ -32,11 +32,13 @@ int main(int argc, const char **argv)
         */
        sanitize_stdfds();
 
+       git_resolve_executable_dir(argv[0]);
+
        git_setup_gettext();
 
-       attr_start();
+       initialize_the_repository();
 
-       git_extract_argv0_path(argv[0]);
+       attr_start();
 
        restore_sigpipe_to_default();