Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-05-08 09:59:17 +0300
committerJunio C Hamano <gitster@pobox.com>2018-05-08 09:59:17 +0300
commit92034a9cd5e71cf686ef66029433bdaba75027b0 (patch)
tree48a2d6429c993e75dc0f4ab76268509dcc82de5f /common-main.c
parentc988f6425acbd9765c55490c45d61f7531d5d83b (diff)
parent64f982b8a791a8e9e612a103d05e5f01a08fce0f (diff)
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);