summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ff9ae9)
raw | patch | inline | side by side (parent: 6ff9ae9)
author | Johannes Sixt <j6t@kdbg.org> | |
Tue, 13 Oct 2009 10:53:28 +0000 (12:53 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 14 Oct 2009 06:24:58 +0000 (23:24 -0700) |
All programs, in particular also the stand-alone programs (non-builtins)
must call git_extract_argv0_path(argv[0]) in order to help builds that
derive the installation prefix at runtime, such as the MinGW build.
Without this call, the program segfaults (or raises an assertion
failure).
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Tested-by: Michael Wookey <michaelwookey@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
must call git_extract_argv0_path(argv[0]) in order to help builds that
derive the installation prefix at runtime, such as the MinGW build.
Without this call, the program segfaults (or raises an assertion
failure).
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Tested-by: Michael Wookey <michaelwookey@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c | patch | blob | history |
diff --git a/remote-curl.c b/remote-curl.c
index ad6a1637b52dedeeb461315e9cc0d313b1c6087f..d8d276a471b0c5a819ca1b2e02e9b3a6cd27cd73 100644 (file)
--- a/remote-curl.c
+++ b/remote-curl.c
const char *url;
struct walker *walker = NULL;
+ git_extract_argv0_path(argv[0]);
setup_git_directory();
if (argc < 2) {
fprintf(stderr, "Remote needed\n");