aboutsummaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2009-01-18 13:00:12 +0100
committerJunio C Hamano <gitster@pobox.com>2009-01-26 00:26:05 -0800
commit2fb3f6db96492b680899f9e40f434eeb4c778a84 (patch)
tree34fc6bc48403648216d8864fabcf28effb14c15a /imap-send.c
parent2cd72b0b290e40fb4d6a925ce26603503f01aa09 (diff)
downloadgit-2fb3f6db96492b680899f9e40f434eeb4c778a84.tar.gz
git-2fb3f6db96492b680899f9e40f434eeb4c778a84.tar.xz
Add calls to git_extract_argv0_path() in programs that call git_config_*
Programs that use git_config need to find the global configuration. When runtime prefix computation is enabled, this requires that git_extract_argv0_path() is called early in the program's main(). This commit adds the necessary calls. Signed-off-by: Steffen Prohaska <prohaska@zib.de> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'imap-send.c')
-rw-r--r--imap-send.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/imap-send.c b/imap-send.c
index c3fa0df85..f91293c23 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -23,6 +23,7 @@
*/
#include "cache.h"
+#include "exec_cmd.h"
#ifdef NO_OPENSSL
typedef void *SSL;
#endif
@@ -1389,6 +1390,8 @@ int main(int argc, char **argv)
int total, n = 0;
int nongit_ok;
+ git_extract_argv0_path(argv[0]);
+
/* init the random number generator */
arc4_init();