Skip to content

Commit

Permalink
http-fetch: add missing initialization of argv0_path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jrn authored and gitster committed Nov 10, 2009
1 parent d629c40 commit f01d749
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http-fetch.c
@@ -1,4 +1,5 @@
#include "cache.h"
#include "exec_cmd.h"
#include "walker.h"

int main(int argc, const char **argv)
Expand All @@ -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] == '-') {
Expand Down

0 comments on commit f01d749

Please sign in to comment.