summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-10-14 01:54:51 -0700
committerJunio C Hamano <gitster@pobox.com>2009-10-14 01:54:51 -0700
commit18a536476e68349bacab7ddf84166a907dd0bede (patch)
tree0ebfa3405777e23c57898d7198501504eba8658e /remote-curl.c
parent9ecb2a7f496413b9a6404e4a19f7edee029819b8 (diff)
parent583371af1f88e9cd48fedbb6bbb147d8091fd591 (diff)
downloadgit-18a536476e68349bacab7ddf84166a907dd0bede.tar.gz
Merge branch 'maint'
* maint: change throughput display units with fast links clone: Supply the right commit hash to post-checkout when -b is used remote-curl: add missing initialization of argv0_path
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote-curl.c b/remote-curl.c
index ad6a1637b5..2faf1c6344 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");