X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote-curl.c;h=2faf1c634415d139f15c4829937e0460be31dc1d;hb=c51f6ceed6a9a436f16f8b4f17eab1a3d17cffed;hp=ad6a1637b52dedeeb461315e9cc0d313b1c6087f;hpb=f539cfbe8c157885197d1b6e4c1bcc6cbc54d0b9;p=git.git diff --git a/remote-curl.c b/remote-curl.c index ad6a1637b..2faf1c634 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -3,6 +3,7 @@ #include "strbuf.h" #include "walker.h" #include "http.h" +#include "exec_cmd.h" static struct ref *get_refs(struct walker *walker, const char *url) { @@ -82,6 +83,7 @@ int main(int argc, const char **argv) const char *url; struct walker *walker = NULL; + git_extract_argv0_path(argv[0]); setup_git_directory(); if (argc < 2) { fprintf(stderr, "Remote needed\n");