gettext: avoid initialization if the locale dir is not present
[gitweb.git] / common-main.c
index 6a689007e7ce3fe08f148e8b82c0a1c618c513a5..b2e5a86dffd2e11b346a71615e3f146165c41ad9 100644 (file)
@@ -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();