summaryrefslogtreecommitdiff
path: root/http-fetch.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-11-09 15:05:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-10 19:02:27 (GMT)
commitf01d74960363736caaf4d98d39555e99bdc72c25 (patch)
tree4f22a38a740a7e5021185af36f024d6742623c6b /http-fetch.c
parentd629c40b0b8b63b0c8b33d52dcba0ed202d898d7 (diff)
downloadgit-f01d74960363736caaf4d98d39555e99bdc72c25.zip
git-f01d74960363736caaf4d98d39555e99bdc72c25.tar.gz
git-f01d74960363736caaf4d98d39555e99bdc72c25.tar.bz2
http-fetch: add missing initialization of argv0_path
According to c6dfb39 (remote-curl: add missing initialization of argv0_path, 2009-10-13), programs with "main" must call this to work correctly on MinGW. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-fetch.c')
-rw-r--r--http-fetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/http-fetch.c b/http-fetch.c
index e8f44ba..88f7dc8 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -1,4 +1,5 @@
#include "cache.h"
+#include "exec_cmd.h"
#include "walker.h"
int main(int argc, const char **argv)
@@ -19,8 +20,8 @@ int main(int argc, const char **argv)
int get_verbosely = 0;
int get_recover = 0;
+ git_extract_argv0_path(argv[0]);
prefix = setup_git_directory();
-
git_config(git_default_config, NULL);
while (arg < argc && argv[arg][0] == '-') {