summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2afea3b)
raw | patch | inline | side by side (parent: 2afea3b)
author | Gerrit Pape <pape@smarden.org> | |
Wed, 28 Mar 2007 09:47:35 +0000 (09:47 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 28 Mar 2007 11:44:23 +0000 (04:44 -0700) |
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 58b77a7a18aa108cbe6476e42a5dfe1b3b419840..557b40322f22b77a81140ff8f29b2b2be0505581 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
struct alt_base
{
char *base;
- int path_len;
int got_indices;
struct packed_git *packs;
struct alt_base *next;
int serverlen = 0;
struct alt_base *newalt;
char *target = NULL;
- char *path;
if (data[i] == '/') {
/* This counts
* http://git.host/pub/scm/linux.git/
newalt->base = target;
newalt->got_indices = 0;
newalt->packs = NULL;
- path = strstr(target, "//");
- if (path) {
- path = strchr(path+2, '/');
- if (path)
- newalt->path_len = strlen(path);
- }
while (tail->next != NULL)
tail = tail->next;
const char **write_ref = NULL;
char **commit_id;
const char *url;
- char *path;
+ char *s;
int arg = 1;
int rc = 0;
alt = xmalloc(sizeof(*alt));
alt->base = xmalloc(strlen(url) + 1);
strcpy(alt->base, url);
- for (path = alt->base + strlen(alt->base) - 1; *path == '/'; --path)
- *path = 0;
+ for (s = alt->base + strlen(alt->base) - 1; *s == '/'; --s)
+ *s = 0;
alt->got_indices = 0;
alt->packs = NULL;
alt->next = NULL;
- path = strstr(url, "//");
- if (path) {
- path = strchr(path+2, '/');
- if (path)
- alt->path_len = strlen(path);
- }
if (pull(commits, commit_id, write_ref, url))
rc = 1;