summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 46dc941)
raw | patch | inline | side by side (parent: 46dc941)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 1 Feb 2006 02:15:51 +0000 (18:15 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 3 Feb 2006 01:54:24 +0000 (17:54 -0800) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c | patch | blob | history |
diff --git a/http-fetch.c b/http-fetch.c
index 97ce13c44c3bedcb13b55c4af885940831f1d12c..72edf28b0010ad107bae16a7330bad34f4bb5bca 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
free(obj_req->url);
return;
}
-
}
static void finish_object_request(struct object_request *obj_req)
slot->curl = NULL;
}
slot = slot->next;
- }
+ }
}
#endif
if (get_verbosely)
fprintf(stderr, "Getting index for pack %s\n", hex);
-
+
url = xmalloc(strlen(repo->base) + 64);
sprintf(url, "%s/objects/pack/pack-%s.idx", repo->base, hex);
-
+
filename = sha1_pack_index_name(sha1);
snprintf(tmpfile, sizeof(tmpfile), "%s.temp", filename);
indexfile = fopen(tmpfile, "a");
} else if (!memcmp(data + i, "../", 3)) {
i += 3;
serverlen = strlen(base);
- while (i + 2 < posn &&
+ while (i + 2 < posn &&
!memcmp(data + i, "../", 3)) {
do {
serverlen--;
i += 3;
}
// If the server got removed, give up.
- okay = strchr(base, ':') - base + 3 <
+ okay = strchr(base, ':') - base + 3 <
serverlen;
} else if (alt_req->http_specific) {
char *colon = strchr(data + i, ':');
posn - i - 7);
target[serverlen + posn - i - 7] = '\0';
if (get_verbosely)
- fprintf(stderr,
+ fprintf(stderr,
"Also look at %s\n", target);
newalt = xmalloc(sizeof(*newalt));
newalt->next = NULL;
if (get_verbosely)
fprintf(stderr, "Getting alternates list for %s\n", base);
-
+
url = xmalloc(strlen(base) + 31);
sprintf(url, "%s/objects/info/http-alternates", base);
if (get_verbosely)
fprintf(stderr, "Getting pack list for %s\n", repo->base);
-
+
url = xmalloc(strlen(repo->base) + 21);
sprintf(url, "%s/objects/info/packs", repo->base);
fetch_alternates(alt->base);
altbase = altbase->next;
}
- return error("Unable to find %s under %s\n", sha1_to_hex(sha1),
+ return error("Unable to find %s under %s\n", sha1_to_hex(sha1),
alt->base);
}
buffer.posn = 0;
buffer.buffer = hex;
hex[41] = '\0';
-
+
url = quote_ref_url(base, ref);
slot = get_active_slot();
slot->results = &results;