summaryrefslogtreecommitdiff
path: root/common-main.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-05-08 15:59:17 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-08 15:59:17 +0900
commit92034a9cd5e71cf686ef66029433bdaba75027b0 (patch)
tree48a2d6429c993e75dc0f4ab76268509dcc82de5f /common-main.c
parentMerge branch 'ab/simplify-perl-makefile' (diff)
parentMakefile: quote $INSTLIBDIR when passing it to sed (diff)
downloadtgif-92034a9cd5e71cf686ef66029433bdaba75027b0.tar.xz
Merge branch 'dj/runtime-prefix'
A build-time option has been added to allow Git to be told to refer to its associated files relative to the main binary, in the same way that has been possible on Windows for quite some time, for Linux, BSDs and Darwin. * dj/runtime-prefix: Makefile: quote $INSTLIBDIR when passing it to sed Makefile: remove unused @@PERLLIBDIR@@ substitution variable mingw/msvc: use the new-style RUNTIME_PREFIX helper exec_cmd: provide a new-style RUNTIME_PREFIX helper for Windows exec_cmd: RUNTIME_PREFIX on some POSIX systems Makefile: add Perl runtime prefix support Makefile: generate Perl header from template file
Diffstat (limited to 'common-main.c')
-rw-r--r--common-main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common-main.c b/common-main.c
index b989e136b5..3728f66b4c 100644
--- a/common-main.c
+++ b/common-main.c
@@ -32,14 +32,14 @@ int main(int argc, const char **argv)
*/
sanitize_stdfds();
+ git_resolve_executable_dir(argv[0]);
+
git_setup_gettext();
initialize_the_repository();
attr_start();
- git_extract_argv0_path(argv[0]);
-
restore_sigpipe_to_default();
return cmd_main(argc, argv);