summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b721e01)
raw | patch | inline | side by side (parent: b721e01)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 11 Oct 2005 06:22:02 +0000 (23:22 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 11 Oct 2005 06:22:02 +0000 (23:22 -0700) |
The function fetch_alternates() is called only once from the
main now.
Signed-off-by: Junio C Hamano <junkio@cox.net>
main now.
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 5821c9e5e90e5951f760fbfad25544251c2ead28..e537591edb1853a62c4bc9d77c47bae5fce082e4 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
#endif
}
-static int got_alternates = 0;
-
static int fetch_index(struct alt_base *repo, unsigned char *sha1)
{
char *hex = sha1_to_hex(sha1);
struct alt_base *tail = alt;
struct active_request_slot *slot;
- if (got_alternates)
- return 0;
+
data = xmalloc(4096);
buffer.size = 4095;
buffer.posn = 0;
}
i = posn + 1;
}
- got_alternates = 1;
return ret;
}