summaryrefslogtreecommitdiff
path: root/common-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'common-main.c')
-rw-r--r--common-main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/common-main.c b/common-main.c
index 6a689007e7..3728f66b4c 100644
--- a/common-main.c
+++ b/common-main.c
@@ -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();